Unlock instant, AI-driven research and patent intelligence for your innovation.

A file caching method, device and system

A file caching and caching technology, applied in the Internet field, can solve the problem of unutilized cache module space, and achieve the effect of improving utilization.

Active Publication Date: 2018-04-20
SHENZHEN TENCENT COMP SYST CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

According to the current method, only file A can be cached in the cache module, and 5M space is not utilized in the cache module, which can reduce the number of visits to the background storage device to only 20 times, and if file B and File C is cached in the cache module, and there will only be 1M free space in the cache module, and the number of visits to the background storage device can be reduced to 25 times

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
  • A file caching method, device and system
  • A file caching method, device and system
  • A file caching method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] figure 1 It is a flow chart of the file caching method provided by the present invention.

[0025] like figure 1 As shown, the method includes:

[0026] Step 101, according to the storage space capacity of the caching module, and the access times and / or access traffic of each file in the file collection to be cached, select several files from the file collection to be cached, so that the storage space occupied by the several files It is not larger than the storage space of the cache module, and the sum of the access times and / or the sum of the access traffic of the several files satisfies a predetermined condition.

[0027] Wherein, the access times and / or access traffic of the file may be obtained by analyzing the user's access log.

[0028] Step 102, storing the selected files in the cache module.

[0029] Wherein, the predetermined conditions satisfied by the sum of the number of visits and / or the sum of the visit traffic of several files selected from the file c...

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 application discloses a file caching method and device. The method includes: according to the storage space capacity of the cache module, traversing the file collections whose storage space is not larger than the storage space of the cache module, comparing the sum of access times and / or the sum of access traffic of each file collection traversed, according to The comparison result selects the file set with the largest sum of access times, or the largest sum of access traffic, or the largest weighted sum of the sum of access times and the sum of access traffic; each file in the selected file set is stored in the cache module. Application of the present application can improve the utilization rate of the cache module.

Description

technical field [0001] The present application relates to the technical field of the Internet, and in particular to a file caching method, device and system. Background technique [0002] In a content publishing system, files are generally distributed and stored on multiple storage devices. When a user accesses the access server, the access server will obtain file data from the background storage device and return it to the user. If a certain episode is on the air, a celebrity uploads a video, or when there is an important news release, one or more files will have a high degree of attention, resulting in a very high frequency of access on the access server. This forms the hotspot file. For these hot files, if the access server needs to obtain the file data from the background storage device every time, it will bring huge pressure to the background storage device. [0003] At present, the above-mentioned problem is solved by setting a caching module in the access server to ...

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 Patents(China)
IPC IPC(8): H04L12/861H04L29/08
Inventor 冯锋
Owner SHENZHEN TENCENT COMP SYST CO LTD