# US 2022/0283957 A1 · Method and apparatus for updating cached information, device, and medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0283957 A1
- Document ID: US20220283957A1
- Status: Published application
- Kind: A1
- Application number: 17/637,758
- Filed: 2020-08-26
- Published: 2022-09-08
- Earliest claimed: 2019-08-30
- Assignees: Guizhou Baishancloud Technology Co., Ltd.
- Applicants: Guizhou Baishancloud Technology Co., Ltd.
- Inventors: Shi MA; Xiaozhong CHEN; Yijun LI
- Web page: https://patentgrep.com/patent/US20220283957A1

## CPC

- H04L 67/5682: Policies or rules for updating, deleting or replacing the stored data
- G06F 12/0815: Cache consistency protocols
- G06F 12/126: with special data handling, e.g. priority of data or instructions, handling errors or pinning
- G06F 12/128: adapted to multidimensional cache systems, e.g. set-associative, multicache, multiset or multilevel
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A cached information updating method includes receiving an update request, determining an update processing manner according to a number of pieces of cached information to be updated indicated in the update request, and updating the cached information according to the update processing manner, to update differently according to different numbers of pieces of cached information.

## Claims

### Claim at position 1

-16. (canceled)

### Claim 17

A cached information updating method comprising:
receiving an update request;
determining an update processing manner according to a number of pieces of cached information to be updated indicated in the update request; and
updating the cached information according to the update processing manner, to update differently according to different numbers of pieces of cached information.

### Claim 18 (depends on 17)

The method according to claim 17, wherein determining the update processing manner includes:
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;
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
determining the update processing manner to be a second update processing manner in response to the number of pieces of the batch cached information being not greater than the preset threshold.

### Claim 19 (depends on 18)

The method according to claim 18, 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.

### Claim 20 (depends on 19)

The method according to claim 19, wherein the first update manner further includes:
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.

### Claim 21 (depends on 18)

The method according to claim 18, wherein:
the update processing manner is the second update processing manner; and
updating the cached information includes updating the batch cached information according to an update type.

### Claim 22 (depends on 17)

The method according to claim 17, further comprising:
counting the cached information in a specified directory.

### Claim 23 (depends on 17)

The method according to claim 17, further comprising:
storing the cached information in a multi-level index manner; and
determining the cached information according to the multi-level index manner based on the update request.

### Claim 24 (depends on 17)

The method according to claim 17, further comprising:
marking different text formats of same cached information using different identifiers; and
before updating the cached information, determining to-be-updated cached information of all text formats by the identifiers; and
updating the cached information includes updating the to-be-updated cached information of all the text formats.

### Claim 25

A computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to:
receive an update request;
determine an update processing manner according to a number of pieces of cached information to be updated indicated in the update request; and
update the cached information according to the update processing manner, to update differently according to different numbers of pieces of cached information.

### Claim 26 (depends on 25)

The storage medium according to claim 25, wherein the processor is further configured to execute the computer program to:
judge whether the cached information is batch cached information; and
in response to the cached information being the batch cached information:
judge whether a number of pieces of the batch cached information is greater than a preset threshold;
determine 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
determine the update processing manner to be a second update processing manner in response to the number of pieces of the batch cached information being not greater than the preset threshold.

### Claim 27 (depends on 26)

The storage medium according to claim 26, wherein:
the update processing manner is the first update processing manner; and
the processor is further configured to execute the computer program to:
record an update type and an update request time; and
at a predetermined time, determine not-yet-updated cached information in the batch cached information that has not been updated according to the update type, and update the not-yet-updated cached information according to the update type.

### Claim 28 (depends on 26)

The storage medium according to claim 26, wherein:
the update processing manner is the second update processing manner; and
the processor is further configured to execute the computer program to update the batch cached information according to an update type.

### Claim 29

A computer device comprising:
a memory storing a computer program; and
a processor configured to execute the computer program to:
receive an update request;
determine an update processing manner according to a number of pieces of cached information to be updated indicated in the update request; and
update the cached information according to the update processing manner, to update differently according to different numbers of pieces of cached information.

### Claim 30 (depends on 29)

The device according to claim 29, wherein the processor is further configured to execute the computer program to:
judge whether the cached information is batch cached information; and
in response to the cached information being the batch cached information:
judge whether a number of pieces of the batch cached information is greater than a preset threshold;
determine 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
determine the update processing manner to be a second update processing manner in response to the number of pieces of the batch cached information being not greater than the preset threshold.

### Claim 31 (depends on 30)

The device according to claim 30, wherein:
the update processing manner is the first update processing manner; and
the processor is further configured to execute the computer program to:
record an update type and an update request time; and
at a predetermined time, determine not-yet-updated cached information in the batch cached information that has not been updated according to the update type, and update the not-yet-updated cached information according to the update type.

### Claim 32 (depends on 31)

The device according to claim 31, wherein the first update manner further includes:
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.

### Claim 33 (depends on 30)

The device according to claim 30, wherein:
the update processing manner is the second update processing manner; and
the processor is further configured to execute the computer program to update the batch cached information according to an update type.

### Claim 34 (depends on 29)

The device according to claim 29, wherein the processor is further configured to execute the computer program to:
count the cached information in a specified directory.

### Claim 35 (depends on 29)

The device according to claim 29, wherein the processor is further configured to execute the computer program to:
store the cached information in a multi-level index manner; and
determine the cached information according to the multi-level index manner based on the update request.

### Claim 36 (depends on 29)

The device according to claim 29, wherein the processor is further configured to execute the computer program to:
mark different text formats of same cached information using different identifiers; and
before updating the cached information, determine to-be-updated cached information of all text formats by the identifiers; and
update the cached information includes updating the to-be-updated cached information of all the text formats.
