US 11,853,229 B2
Method and apparatus for updating cached information, device, and medium
Shi Ma, Guiyang (CN); Xiaozhong Chen, Guiyang (CN); and Yijun Li, Guiyang (CN)
Assigned to GUIZHOU BAISHANCLOUD TECHNOLOGY CO., LTD., Guiyang (CN)
Appl. No. 17/637,758
Filed by GUIZHOU BAISHANCLOUD TECHNOLOGY CO., LTD., Guiyang (CN)
PCT Filed Aug. 26, 2020, PCT No. PCT/CN2020/111441
§ 371(c)(1), (2) Date Feb. 23, 2022,
PCT Pub. No. WO2021/037072, PCT Pub. Date Mar. 4, 2021.
Claims priority of application No. 201910818157.8 (CN), filed on Aug. 30, 2019.
Prior Publication US 2022/0283957 A1, Sep. 8, 2022
Int. Cl. G06F 12/128 (2016.01); G06F 12/0815 (2016.01); G06F 12/126 (2016.01)
CPC G06F 12/128 (2013.01) [G06F 12/0815 (2013.01); G06F 12/126 (2013.01)] 15 Claims
OG exemplary drawing
 
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.