Check patentability & draft patents in minutes with Patsnap Eureka AI!

File caching method and device and electronic equipment

A file caching and caching technology, applied in electrical components, digital transmission systems, transmission systems, etc., can solve problems such as fewer numbers, lower resource file hit rates, and limited cache space.

Active Publication Date: 2020-11-10
HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF6 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Due to the limited cache space of each storage medium, it is necessary to frequently add and delete resource files in each storage medium. The existing technology usually uses the least used replacement algorithm or the least recently used replacement algorithm to determine whether the storage medium needs to increase resources. Files or resource files are deleted, but the least replacement algorithm or the least recently used replacement algorithm is applied, and the cached resource files are only processed according to the latest clicks and access time of the resource files, and the storage space occupied by each resource file is not equal. , a large file can be equal to multiple small files, if the storage medium with a faster response speed caches all large files, the number of resource files cached in the storage medium will be reduced, reducing the storage time of each resource file. hit rate in medium

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
  • File caching method and device and electronic equipment
  • File caching method and device and electronic equipment
  • File caching method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0093] There are currently five resource files and three cache file storage media in the edge node, the five resource files are A, B, C, D, E, and the file information blocks corresponding to each resource file are a, b, c, d, e. Each file information block is sorted according to the file score, and the score of each resource file is 90, 88, 86, 84, 80 respectively; the three storage media in the edge node are divided by level, and the highest level is the first level cache, followed by It is the second level cache, and finally the third level cache. Before the user accesses the resource files of the edge nodes, the first-level cache caches A and B; the second-level cache caches A, B, C, and D; the third-level cache caches A, B, C, D, and E. Pointer 1 points to a, pointer 2 points to c, and pointer 3 points to e. In the current time period, when the user accesses the resource file D of the edge node, it is determined as the first target file, and the current resource informa...

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 provides a file caching method and device and electronic equipment, and the method comprises the steps: determining a file information block corresponding to a first target file when a user accesses the first target file, and obtaining the current resource information; determining a file weight and calculating the file weight to obtain a first file score; updating the position of a first file information block corresponding to the first target file, determining a first information pointer to which the first file information block belongs so as to determine the highest-level storage medium for caching the first target file, and caching the first target file according to a caching strategy. By applying the method, the file score of the file is calculated according to each resource parameter, and the position of the file information block corresponding to the resource file in the file information list is updated, so that the resource file is cached according to the positionand the caching strategy. On the basis of the caching strategy, the resource files are cached more reasonably in combination with the file information list, so that the hit rate of the resource filesin a higher-level storage medium when a user accesses the resource files is increased.

Description

technical field [0001] The present invention relates to the technical field of data caching, in particular to a file caching method, device and electronic equipment. Background technique [0002] With the development of science and technology, the CDN (ContentDeliveryNetwork, content distribution network) system can forward the request to the edge node closest to the user when the user sends a resource request according to the network traffic, the distance of the edge node, the load situation and other information in real time , so that users can recently get the resource files they need. [0003] At present, when the CDN system processes the user's resource request, it responds to the user's resource request and at the same time caches the resource file requested by the user in multiple storage media of the local edge node. Since the cache space of each storage medium is different, As a result, each storage medium responds to resource files at different speeds. A storage ...

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): H04L29/08H04L12/24
CPCH04L67/1097H04L41/145H04L41/147H04L67/5682Y02D30/50
Inventor 盛骥斌唐文滔曹问曾迅迅刘维
Owner HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More