Data caching method and device

A technology for caching data and data, applied in the computer field, can solve the problems of cache penetration, waste, excessive cache occupation, etc., to achieve the effects of improving accuracy, improving utilization, and improving hit rate

Inactive Publication Date: 2019-07-16
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] If there is no data to be accessed in the database itself, it will cause cache penetration problems;
[0006] The cache is occupied too much, causing waste;
[0007] Reading and querying data only based on the hash value will cause misjudgment

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
  • Data caching method and device
  • Data caching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0034] figure 1 is a schematic diagram of the main steps of a method for caching data according to an embodiment of the present invention, such as figure 1 Shown:

[0035] Step S101 represents a node that determines whether there is data to be accessed in the cache; wherein the data includes a unique identifier.

[0036] Among them, the data in the cache is stored in se...

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, and relates to the technical field of computers. One specific embodiment of the method comprises the following steps: determining whether a node of data to be accessed exists in a cache or not; when the nodes of the data do not exist in the cache, obtaining the data from a database, establishing the nodes of the data in the historical queueof the cache, and storing the data into the nodes; and when the node of the data exists in the cache, updating the storage position of the node of the data according to the current moment. Accordingto the embodiment, the access time efficiency of the data and the hit rate of reading the data can be improved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method, device, electronic equipment and computer-readable medium for caching data. Background technique [0002] The cache is the buffer for data exchange. When a piece of hardware wants to access data, it will first search for the required data from the cache. If it is found, it will be executed directly, and if it cannot be found, it will access the database. Since the running speed of the cache is faster than that of the database, the function of the cache is to improve the timeliness of data access and reduce the access pressure of the database. If there is no data to be accessed in the database, the next time the data is accessed, the cache will be bypassed and the database will continue to be accessed, resulting in cache penetration. [0003] In the course of realizing the present invention, the inventor finds that there are at least the following problems in ...

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): G06F16/2455
CPCG06F16/24552
Inventor 姚书清陈俊伟仇路金薇薇朱林田玉杰李鑫
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
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