Batch deletion method and apparatus for cache contents, device and readable storage medium
AssigneeZte Corporation
InventorsHong Dong, Zhi Yang
Life of this patent
Estimating the term…
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).
Claims14
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.
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.
Dependencies are inferred from the claim text.