Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for cleaning up cache files

A technology for caching files and conditions, applied in memory systems, electrical digital data processing, instruments, etc., can solve the problems of low disk cleaning efficiency and occupying large disk processing resources, and achieve the effect of saving processing resources and processing time and improving efficiency

Active Publication Date: 2018-04-20
CHINANETCENT TECH
View PDF9 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Every time the disk is cleaned up, the cache server needs to scan all the cached files in the disk, which requires a lot of disk processing resources and takes a lot of processing time, so the efficiency of disk cleanup is low

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
  • Method and device for cleaning up cache files
  • Method and device for cleaning up cache files
  • Method and device for cleaning up cache files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0052] An embodiment of the present invention provides a method for clearing cache files, and the subject of execution of the method may be a cache server. Wherein, the cache server can be a server with file storage function, the external device can send the file resources to be stored to the cache server, and the cache server can store the file resources in the local disk and keep them for a period of time. The external device can obtain the file resources stored in its disk by accessing the cache server. The above-mentioned cache server may include a processor, a memory, and a transceiver. The processor may be used to perform the processing of cleaning cache files in the following process, and the memory may be used to store the data...

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 method and a device for cleaning up cache files, and belongs to the field of technologies for storing data. The method includes reading locally stored cache file indexes whenpreset magnetic disk cleanup conditions are met; determining initial cleanup nodes in the cache file indexes according to preset magnetic disk cleanup rules; deleting all nodes in the cache file indexes and the cache files corresponding to all the nodes. Nodes in the cache file indexes are sorted according to the last access time of the corresponding cache files. All the nodes about to be deletedin the cache file indexes are sorted posterior or prior to the initial cleanup nodes. The method and the device have the advantage that the magnetic disk cleanup efficiency can be improved by the aidof the method and the device.

Description

technical field [0001] The invention relates to the technical field of data storage, in particular to a method and device for clearing cache files. Background technique [0002] A cache server is a device used to store file resources that need to be accessed frequently. It is generally deployed in an area close to the user, so that the user can quickly obtain the file resources stored in it from the cache server. [0003] Limited by the disk capacity, the cache server needs to clean up the cache files regularly. Specifically, the disk can be scanned periodically to calculate the difference between the last access time of the cache file on the disk and the timestamp of the current time. If the timestamp difference corresponding to a cache file is If it is greater than the preset threshold, it means that the cache file has expired, and the cache server can clear the cache file. [0004] In the process of realizing the present invention, the inventor finds that there are at le...

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
IPC IPC(8): G06F12/0891
CPCG06F12/0891
Inventor 陈凯林柳小鹏
Owner CHINANETCENT TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products