Cache elimination method and system

A technology of caching and caching data, which is applied in the field of data processing to achieve the effect of improving accuracy
CN113268440AActive Publication Date: 2021-08-17SHANGHAI BILIBILI TECH CO LTD

Patent Information

Authority / Receiving Office
CN ยท China
Patent Type
Applications(China)
Current Assignee / Owner
SHANGHAI BILIBILI TECH CO LTD
Publication Date
2021-08-17

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a cache elimination method, and the method comprises the steps: setting a first queue and a second queue, wherein the first queue is used for maintaining cache data and a unique code corresponding to each piece of data, and the second queue is used for maintaining the code and the query rate per second of each piece of data; receiving the code of the data to be queried; and initiating a query operation to the first queue according to the code, updating the first queue and the second queue when the code is not queried, and eliminating the cold data in the first queue. The invention further discloses a cache elimination system, an electronic device and a computer readable storage medium. Therefore, the hot data set, the warm data set and the cold data set in the queue can be effectively distinguished, the elimination accuracy is improved, and cache data of historical access records can be eliminated without a large amount of data access.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present application relates to the technical field of data processing, and in particular, to a cache elimination method, system, electronic device, and computer-readable storage medium. Background technique

[0002] The cache elimination algorithm is an elimination algorithm to make full use of cached data. In order to maximize the page hit rate, most operating systems widely use the LRU (Least Recently Used, least recently used) elimination algorithm. The LRU elimination algorithm maintains a queue. The Insert (insert) operation will put the data at the head of the queue, and the elimination will start from the tail of the queue, and the Key (the unique ID number of the data resource) obtained by the Lookup (query) operation will also be updated. , transfer the Key to the head of the queue. The K in the LRU-K elimination algorithm represents the threshold of the number of recent uses, which is an elimination algorithm that only enters the LRU qu...

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