A method and device for adjusting file cache time
A technology of file caching and caching time, applied in the Internet field, can solve problems such as inaccurate cache time, insufficient utilization of cache capacity, and increased response load of web servers
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] figure 1 It is a flow chart of a method for adjusting the file cache time provided by Embodiment 1 of the present invention. This embodiment is applicable to the case where files are cached from the server to the local, and the method can be executed by a device for adjusting the file cache time. Specifically include the following steps:
[0032] Step S101, scan the current file regularly, record the information of the current file obtained by the current scan after scanning the current file each time, and determine whether the current file has been modified compared with the previous scanning time according to the recorded information, if it is determined that it has been modified, then Record modification time.
[0033] In step S101, the recorded information of the current file may include: at least one of summary information, last modification information, entity value ETag of the requested variable, and file content. Preferably, the digest information can be obtai...
Embodiment 2
[0040] figure 2 It is a schematic flowchart of a method for adjusting file cache time provided by Embodiment 2 of the present invention. Embodiment 2 of the present invention provides a method for adjusting file cache time, such as figure 2 shown, including the following steps:
[0041] Step S201, regularly scan the current file, and record the information of the current file obtained in the current scan after scanning the current file each time;
[0042] In step S201, the information of the current file obtained by scanning may include: at least one of summary information, last modification information, entity value ETag of the requested variable, and file content.
[0043] Step S202, obtaining the information of the current file obtained from the previous scan, and comparing the information of the current file obtained from the previous scan with the information of the current file obtained from the current scan; If the information of the current file is inconsistent, i...
Embodiment 3
[0051] image 3 It is a schematic structural diagram of an apparatus for adjusting file cache time provided by Embodiment 3 of the present invention.
[0052] Embodiment 3 of the present invention provides a device for adjusting file cache time, such as image 3 As shown, it includes: a current file scanning module 31 , a buffer time calculation module 32 and a buffer time setting module 33 .
[0053] Wherein, the current file scanning module 31 is used to regularly scan the current file, record the information of the current file obtained by the current scan after scanning the current file each time, and determine whether the current file has been scanned compared to the previous scanning time according to the recorded information. Modify, if it is determined that it is modified, then record the modification time; the buffer time calculation module 32 is used to count the modification frequency of the current file in the preset time period according to the modification time ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com