Caching method and device and computer storage medium

A technology for caching and caching files, applied in the computer field, can solve the problems of inability to find the URL storage location, unworkable, complex processing effect of the cache server, etc., to achieve the effect of easy search and management, and save storage space

Active Publication Date: 2019-07-16
CHINA TELECOM CLOUD TECH CO LTD
View PDF20 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But for the overall refresh of a directory, the processing effect of the cache server is very complicated, because the file name is encrypted, so it cannot be found by traversing the hard disk; because the URL storage locations in the same directory are distributed, so It is not possible to find all the URL storage locations in the directory by the directory name; it is also unknown which URLs are stored locally in a directory, so the method of calculating the location of cache files one by one according to the URL and then deleting them is not feasible

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Caching method and device and computer storage medium
  • Caching method and device and computer storage medium
  • Caching method and device and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. The following description of at least one exemplary embodiment is merely illustrative in nature and in no way taken as limiting the invention, its application or uses. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0035] Aiming at the problems in the prior art that the method of file refresh caused by the file cache method is complicated and inefficient, this solution is proposed.

[0036] The caching device in the embodiment of the present invention can be realized by various computing devices or compute...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a caching method and device and a computer storage medium, and relates to the technical field of computers. According to the invention, the URL of each cache file is stored inthe URL tree; characters are stored in all nodes in the URL tree, the number of the characters is uncertain, the first characters of all the nodes in the same layer are different, the characters fromthe root node to all the leaf nodes or middle nodes can form a complete URL or domain name, and cache information of a cache file is stored in a node corresponding to the last character of the URL. The storage structure of the URL tree is convenient to find and manage, and when a file refreshing request exists, the corresponding cache information can be simply and quickly found according to the corresponding URL or domain name so as to refresh the file. In addition, the storage space can be saved through the storage structure of the URL tree.

Description

technical field [0001] The present invention relates to the technical field of computers, in particular to a caching method, device and computer storage medium. Background technique [0002] The cache server is an edge server of a CDN (Content Delivery Network, content distribution network). The cached content is stored on the local hard disk. In order to improve the concurrent access speed of massive cached content, multiple hard disks are generally provided for distributed storage. The content of the page corresponding to a URL (Uniform Resource Locator, Uniform Resource Locator) is cached as a file, and the cache file storage directory and file name are encrypted. The cache server distributes the cache files to different hard disks based on the hash algorithm calculated by the URL. Even the URLs under the same domain name directory may not necessarily be stored on the same hard disk. [0003] For the refresh of a single URL, after the cache server receives the refresh r...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/957G06F16/955
CPCG06F16/9566G06F16/9574
Inventor 侯光华冀晖张平
Owner CHINA TELECOM CLOUD TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products