Squid cache file clearing method according to catalog format

A technology for clearing caches and directories, applied in special data processing applications, instruments, electrical digital data processing, etc.

Active Publication Date: 2017-05-31
BEIJING QIERBULAITE TECH
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The object of the present invention is to provide a kind of method that Squid clears cache file according to directory format, thus solve the foregoing problems existing in the prior art

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
  • Squid cache file clearing method according to catalog format
  • Squid cache file clearing method according to catalog format
  • Squid cache file clearing method according to catalog format

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0038] The method that Squid according to the present embodiment clears the cache file according to the directory format, the method includes:

[0039] S1, combine redis with squid, when the cache misses, convert the URL accessed by the client into the key-value correspondence between domain name and directory structure, and store it in redis;

[0040] S2, when receiving an instruction to clear a set of caches, Squid first fetches a set of eligible URLs from redis, clears them one by one, and then clears the storage information related to the target URL stored in redis.

[0041] (1) Reference figure 1 with figure 2 , step S1, specifically implemented according to the following steps:

[0042] S11, as the server, squid receives the access domain name sent by the client, combines the access control list of squid to judge whether the access domain name sent by the client meets the configuration rules of squid, if yes, then allows access, and enters S12; if not, then do not al...

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 squid cache file clearing method according to a catalog format. The method comprises the steps of combining redis with the squid: when a cache misses, converting a URL accessed by a client to a key-value corresponding relation of a domain name-catalog structure, and storing in the redis; when a command of clearing any group of caches is received, the squid first catching a group of URLs that meet requirements in the redis, clearing one by one, then clearing related storage information of the group stored in the redis that meet the requirements. As for the scence of squid cache clearing, high performance memory server like the redis is used in the method, which not only has high performance, but also can improve the safety of data by configuration. When clearing the caches of the catalog, the method does not need to stop and clear, users access without perception, and the operation personnel basically have no learning cost.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a method for Squid to clear cache files according to the directory format. Background technique [0002] Squid is a popular open source software with a wide range of uses and is often used as a cache server. When a user wants to access the web and download data, the user computer sends an application to Squid, and Squid connects to the applied website and requests the data, and then transfers the data to the user while keeping a backup. When other users apply for the same data, Squid immediately transfers the saved backup to the user, saving the back-end request link, resulting in faster response and better user experience. [0003] But when users complain about always receiving outdated data (cache), or a certain cache of Squid needs to be updated and modified, it needs to be solved by clearing the cache. [0004] However, when you want to clear the cache under the same direct...

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): G06F17/30
CPCG06F16/1737
Inventor 于馨桐
Owner BEIJING QIERBULAITE TECH
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