Data caching method and device, computer equipment and readable storage medium

A technology for data caching and data storage, which is applied in computing, memory systems, electrical digital data processing, etc., and can solve problems such as low cache hit rate and poor cache effect

Pending Publication Date: 2020-07-03
CHINA CONSTRUCTION BANK
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The traditional cache elimination method generally removes data that has not been used recently from the cache, but in some usage scenarios, such elimination metho

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
  • Data caching method and device, computer equipment and readable storage medium
  • Data caching method and device, computer equipment and readable storage medium
  • Data caching method and device, computer equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.

[0036] figure 1 It is a schematic flow diagram of a data caching method in an embodiment, such as figure 1 As shown, in one embodiment, a data caching method includes:

[0037] Step S120: Establish a first cache queue and a second cache queue.

[0038] Specifically, when performing data caching, the first cache queue and the second cache queue are first established, and the two cache queues can respectively adopt different cache elimination methods for data caching. The cache elimination methods of the first cac...

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 data caching method and device, computer equipment and a storage medium, and the data caching method comprises the steps: building a first caching queue and a second cachingqueue; storing the data of which the access frequency is less than or equal to a preset threshold in the second cache queue; when the access frequency of the data in the second cache queue is greaterthan a preset threshold, transferring the data to the first cache queue; and respectively eliminating the data of the first cache queue and the second cache queue by adopting a first cache method anda second cache method. The method, cache queues of two cache methods are established; according to the method, cache data with more access times and cache data with less access times are respectivelystored, and the two cache queues adopt independent elimination strategies to perform data elimination, so that inaccurate judgment of a single cache method can be avoided, data expected to be cached is eliminated, and the hit rate of cache is effectively improved.

Description

technical field [0001] Embodiments of the present invention relate to computer software technology, and in particular, to a data caching method, device, computer equipment, and computer-readable storage medium. Background technique [0002] When processing data, it is generally necessary to set up a cache to improve efficiency, but since the size of the cache is limited, after the data in the cache is full, some of the data needs to be eliminated to store new data. [0003] The traditional cache elimination method generally removes data that has not been used recently from the cache, but in some usage scenarios, such elimination methods, such as data used at certain periodic intervals, may cache data that is expected to be cached Elimination, resulting in poor cache performance and low cache hit rate. Contents of the invention [0004] Based on this, aiming at the above technical problems, the present invention provides a data caching method, device, computer equipment an...

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
IPC IPC(8): G06F12/123
CPCG06F12/123G06F2212/1021G06F2212/1044
Inventor 张鹏
Owner CHINA CONSTRUCTION BANK
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