Method, storage medium, device and system for automatically cleaning cached files

A technology of caching files and automatic cleaning, which is applied in the direction of memory system, hardware monitoring, program control design, etc., to avoid abnormal problems and avoid impact

Inactive Publication Date: 2019-02-12
WUHAN DOUYU NETWORK TECH CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The object of the present invention is to overcome the deficiency of the above-mentioned background technology and provide a method, storage medium, device and system for automatically cleaning cache files, which can realize the purpose of automatically cleaning cache without affecting the efficiency of program execution, thereby effectively Avoid the occurrence of abnormal problems caused by excessive cache

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, storage medium, device and system for automatically cleaning cached files
  • Method, storage medium, device and system for automatically cleaning cached files
  • Method, storage medium, device and system for automatically cleaning cached files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0039] see figure 1 As shown, the embodiment of the present invention provides a method for automatically cleaning cache files, the method comprising the following steps:

[0040] Step S1, creation of a monitoring process: creating a monitoring process for handling cache file size monitoring tasks.

[0041] It can be understood that an application program is usually a process, and there can be multiple threads in a process. After starting multiple threads, the operating system will consider it a resource overhead for the application. If the resource overhead of the application program is too large, the operating system may not give the application program such a high priority during CPU scheduling, that is, the performance of the application program will be degraded to a certain extent.

[0042] However, in the embodiment of the pr...

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 for automatically cleaning cached files, a storage medium, a device and a system, which relate to the technical field of software development. The method comprises thefollowing steps of: creating a monitoring process; Starting the monitoring timer in the monitoring process and set the timing period of the monitoring timer. When the listening timer is triggered periodically, detecting the size of the current cache file, judging whether the size of the currently used cache file exceeds the preset threshold value, if not, setting the total capacity of the cache file to M% of the current remaining memory space when the total capacity of the cache file is not set, and then continuing listening; If it is exceeded, the current cache file is cleaned up, the totalcache file capacity is reset to M% of the current remaining memory space, and continuing monitoring. The invention can realize the purpose of automatically cleaning the cache without affecting the program execution efficiency, thereby effectively avoiding the occurrence of abnormal problems caused by excessive cache size.

Description

technical field [0001] The invention relates to the technical field of software development, in particular to a method, storage medium, device and system for automatically clearing cached files. Background technique [0002] At present, in order to improve the loading speed of software in the software development process, one of the most commonly used technologies is caching technology, which will cache some information or resources so that they can be used again when we need them next time. In the traditional software development process, the size of the cache file is usually not managed, that is to say, the cache file will be stored on the disk, and the cache file will not be cleaned until the user upgrades or uninstalls the software. [0003] However, there is a potential risk in the traditional method of processing cache files, that is, if the user has not upgraded the software or uninstalled the software for a long time, the cache files will gradually increase with the ...

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): G06F12/0891G06F9/50G06F11/07G06F11/30
CPCG06F9/5027G06F11/0754G06F11/3051G06F11/3058G06F12/0891
Inventor 张磊陈少杰张文明
Owner WUHAN DOUYU NETWORK 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