Patent ID: 9641468
Date: 2017-05-02
CPC Classifications: G06F,H04L

Claim:
1. A method for releasing instant messaging key-value data, comprising: receiving, by a server, a request packet for pulling key-value data sent from a client during a login, wherein the request packet at least contains a full-amount pulling time-stamp, an increased-amount pulling time-stamp, and a data-altering serial number; and selecting, by a server, a pre-set data releasing mechanism according to parameters contained in the request packet, to release full amount key-value data to the client or to release increased amount key-value data to the client, or not to release the key-value data, such that, according to a returned result from the server, the client updates local cache data to display to a user; wherein the step of selecting the pre-set data releasing mechanism includes: determining whether a configuration of the full-amount pulling time-stamp, the increased-amount pulling time-stamp, and the data-altering serial number contained in the request packet is empty; releasing, by the server, the full amount key-value data and a latest full-amount pulling time-stamp to the client, when the configuration is determined empty; comparing the full-amount pulling time-stamp in the request packet with a current-time to obtain a time interval between the full-amount pulling time-stamp in the request packet and the current-time, when the configuration is determined not empty; and releasing the full amount key-value data and the latest full-amount pulling time-stamp to the client, when the time interval between the full-amount pulling time-stamp and the current-time is greater than or equal to a pre-set full-amount pulling time interval t