# US 12,182,072 B2 · Batch deletion method and apparatus for cache contents, device and readable storage medium

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

- Number: US 12,182,072 B2
- Document ID: US12182072B2
- Status: Granted
- Kind: B2
- Application number: 17/772,314
- Filed: 2020-10-21
- Published: 2022-12-22
- Granted: 2024-12-31
- Earliest claimed: 2019-10-28
- Assignees: Zte Corporation
- Applicants: ZTE Corporation
- Inventors: Hong Dong; Zhi Yang
- Web page: https://patentgrep.com/patent/US12182072B2

## CPC

- H04L 67/5682: Policies or rules for updating, deleting or replacing the stored data
- G06F 16/148: {File search processing}
- G06F 16/162: {Delete operations (erasing in storage systems G06F3/0652)}
- G06F 16/172: Caching, prefetching or hoarding of files
- G06F 16/182: Distributed file systems
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- 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 batch deletion method, apparatus, and device for cached content and a non-transitory computer-readable storage medium are disclosed. The method may include: adding keywords to content identifiers which correspond to cached resources (S101); saving the content identifiers separately (S102); finding, through a keyword-based query, content identifiers meeting at least one condition (S103); locating storage paths of cached resources by using the content identifiers meeting the at least one condition (S104); and deleting the located cached resources one by one (S105).

## Claims

### Claim 1

A batch deletion method for cached resources, which is applied to a content delivery network (CDN) server, the method comprising:
adding keywords to content identifiers which correspond to cached resources;
saving the content identifiers with the keywords separately from the cached resources;
finding, through a keyword-based query, content identifiers meeting at least one condition;
locating storage paths of cached resources by using the content identifiers meeting the at least one condition; and
deleting the located cached resources one by one from the CDN server;
wherein, the method further comprises,
calculating a message digest (MD) 5 value by using the content identifiers, and planning paths of the cached resources according to the MD5 value;
wherein each content identifier further comprises a unique identifier of a respective cached resource;
each content identifier at least comprises following key words comprising, cpid, which represents a content provider (CP); domain, which represents a domain name of the CP; column, which represents a column; time, which represent a resource launch time; filekey, which represents a unique identifier of the cached resource; alarm, which represents a risk level of a source website for the resource; hotrate, which represents popularity of the resource; and
calculating a message digest (MD) 5 value by using the content identifiers, and planning paths of the cached resources according to the MD5 value comprises,
calculating the MD5 value by using the content identifier from which the key words of alarm and hotrate are removed, and planning the path of the cached resource according to the MD5 value calculated with the key words of alarm and hotrate removed.

### Claim 2 (depends on 1)

The batch deletion method for cached resources of claim 1, before finding, through a keyword-based query, content identifiers meeting at least one condition, the method further comprising obtaining keyword information.

### Claim 3 (depends on 2)

A non-transitory computer-readable storage medium storing at least one computer program, wherein the at least one computer program is executable by at least one processor to implement the batch deletion method for cached resources of claim 2.

### Claim 4 (depends on 1)

The batch deletion method for cached resources of claim 1, wherein classification rules for the content identifiers are divided depending on the keywords into static classification and dynamic classification.

### Claim 5 (depends on 4)

The batch deletion method for cached resources of claim 4, wherein the static classification refers to classification performed according to fixed keywords in the content identifiers for the cached resources.

### Claim 6 (depends on 5)

A non-transitory computer-readable storage medium storing at least one computer program, wherein the at least one computer program is executable by at least one processor to implement the batch deletion method for cached resources of claim 5.

### Claim 7 (depends on 4)

The batch deletion method for cached resources of claim 4, wherein the dynamic classification refers to classification performed according to dynamically changeable keywords in the content identifiers for the cached resources.

### Claim 8 (depends on 7)

A non-transitory computer-readable storage medium storing at least one computer program, wherein the at least one computer program is executable by at least one processor to implement the batch deletion method for cached resources of claim 7.

### Claim 9 (depends on 4)

A non-transitory computer-readable storage medium storing at least one computer program, wherein the at least one computer program is executable by at least one processor to implement the batch deletion method for cached resources of claim 4.

### Claim 10 (depends on 1)

The batch deletion method for cached resources of claim 1, after deleting the located cached resources one by one, the method further comprising deleting content identifiers which correspond to the deleted cached resources.

### Claim 11 (depends on 10)

A non-transitory computer-readable storage medium storing at least one computer program, wherein the at least one computer program is executable by at least one processor to implement the batch deletion method for cached resources of claim 10.

### Claim 12 (depends on 1)

A non-transitory computer-readable storage medium storing at least one computer program, wherein the at least one computer program is executable by at least one processor to implement the batch deletion method for cached resources of claim 1.

### Claim 13

A batch deletion device for cached resources, comprising a processor, a memory, and a communication bus, wherein:
the communication bus is configured to connect a first processor and a first memory; and
the processor is configured to execute at least one computer program stored in the memory to implement a batch deletion method for cached resources, which is applied to a content delivery network (CDN) server, the method comprising:
adding keywords to content identifiers which correspond to cached resources;
saving the content identifiers with the keywords separately from the cached resources;
finding, through a keyword-based query, content identifiers meeting at least one condition;
locating storage paths of cached resources by using the content identifiers meeting the at least one condition; and
deleting the located cached resources one by one from the CDN server;
wherein, the method further comprises,
calculating a message digest (MD) 5 value by using the content identifiers, and planning paths of the cached resources according to the MD5 value;
wherein each content identifier further comprises a unique identifier of a respective cached resource;
each content identifier at least comprises following key words comprising, cpid, which represents a content provider (CP); domain, which represents a domain name of the CP; column, which represents a column; time, which represent a resource launch time; filekey, which represents a unique identifier of the cached resource; alarm, which represents a risk level of a source website for the resource; hotrate, which represents popularity of the resource; and
calculating a message digest (MD) 5 value by using the content identifiers, and planning paths of the cached resources according to the MD5 value comprises,
calculating the MD5 value by using the content identifier from which the key words of alarm and hotrate are removed, and planning the path of the cached resource according to the MD5 value calculated with the key words of alarm and hotrate removed.

### Claim 14 (depends on 1)

The batch deletion method for cached resources of claim 1, wherein classification rules for the content identifiers are divided depending on the keywords into static classification and dynamic classification.
