A method and device for setting file cache time
A technology of caching time and file caching, which is applied in the Internet field and can solve problems such as increasing the response load of web servers, different access frequencies, and wasting bandwidth resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] figure 1 It is a schematic flowchart of a method for setting the file cache time provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of caching files from the server to the local, and the method can be executed by the device for setting the file cache time, specifically including Follow the steps below:
[0030] Step S101, setting a reference cache time of a file.
[0031] In step S101, the reference cache time can be set according to the modification time and modification frequency of the file. Specifically, if the modification frequency exceeds the preset frequency, a shorter reference cache time can be set; if the modification frequency is lower than the preset frequency, you can set a longer baseline cache time.
[0032] Step S102, obtaining the access information of the file, calculating the access frequency according to the access information, and adjusting the reference cache time according to the calculated access frequ...
Embodiment 2
[0038] figure 2 It is a schematic structural diagram of an apparatus for setting a file cache time provided in Embodiment 2 of the present invention.
[0039] Embodiment 2 of the present invention provides a device for setting file cache time, such as figure 2 As shown, it includes: a reference buffer time setting module 21 , a reference buffer time adjustment module 22 and a reference buffer time reset module 23 .
[0040] Wherein, the benchmark buffer time setting module 21 is used to set the benchmark buffer time of the file; the benchmark buffer time adjustment module 22 is used to obtain the access information of the file, calculate the access frequency according to the access information, and adjust the access frequency according to the calculated access frequency. The reference cache time; the reference cache time reset module 23, configured to reset the reference cache time of the file according to the adjusted reference cache time.
[0041] In the reference buffer...
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