CPC G06F 12/128 (2013.01) [G06F 12/0815 (2013.01); G06F 12/126 (2013.01)] | 15 Claims |
1. A cached information updating method, performed by a cache server, comprising:
receiving an update request and storing, in the cache server, cached information to be updated indicated in the update request;
determining an update processing manner according to a number of pieces of the cached information, including:
judging whether the cached information is batch cached information; and
in response to the cached information being the batch cached information:
judging whether a number of pieces of the batch cached information is greater than a preset threshold; and
determining the update processing manner to be a first update processing manner in response to the number of pieces of the batch cached information being greater than the preset threshold; and
updating the cached information according to the update processing manner, to update differently according to different numbers of pieces of cached information, wherein the update processing manner is the first update processing manner, and updating the cached information includes:
recording an update type and an update request time, and at a predetermined time, determining not-yet-updated cached information in the batch cached information that has not been updated according to the update type, and updating the not-yet-updated cached information according to the update type; or
recording the update type and the update request time in a last update request in response to receiving a plurality of update requests for the batch cached information, and at the predetermined time and according to the update type in the last update request, updating the not-yet-updated cached information in the batch cached information according to the update type.
|