Cache method and storage equipment

A storage device and cache technology, applied in memory systems, instruments, computing, etc., can solve the problems of occupying memory resources and increasing data volume.

Active Publication Date: 2018-01-05
MAIPU COMM TECH CO LTD
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If stored in this way, there will be a problem of data being stored repeatedly. With the dynamic changes of q...

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
  • Cache method and storage equipment
  • Cache method and storage equipment
  • Cache method and storage equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0101] An embodiment of the present invention provides a data caching method, such as image 3 As shown, the method includes the following steps:

[0102] 101. The storage device receives a data cache request message sent by a client; the data cache request message carries original data and an external key parameter corresponding to the original data; the external key parameter is defined by the client.

[0103] In a specific implementation, the client transmits (external key, original data) to the storage device through the cache interface module of the storage device. Wherein, the external key is the external key parameter, which can be a user ID or a query condition, such as: querying user data by page, querying user data by user name fuzzy matching, current page, and page size as query conditions.

[0104] 102. The storage device obtains a first internal key parameter of the original data by using a preset algorithm; combines the first internal key parameter with...

Embodiment 2

[0201] An embodiment of the present invention provides a storage device, such as Figure 9 As shown, the storage device includes: a receiving unit 601 , a computing unit 602 , a data encapsulation unit 603 and a storage unit 604 .

[0202] The receiving unit 601 is configured to receive a data cache request message sent by a client; the data cache request message carries original data and an external key parameter corresponding to the original data; the external key parameter is defined by the client.

[0203] The calculation unit 602 is configured to obtain the first internal key parameter of the original data by using a preset algorithm.

[0204] A data encapsulation unit 603, configured to combine the first internal key parameter with the original data to obtain encapsulation data.

[0205] The storage unit 604 is configured to store the mapping relationship between the external key parameter and the first internal key parameter, and store the mapping relationsh...

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 provides a cache method and storage equipment, relates to the field of computer application software, and aims at updating cache data in real time in scenes of caching data by adoption of key value pairs so as to avoid repeated data storage and save memory resources. The cache method comprises the following steps of: receiving a data cache request message sent by a client by the storage equipment, wherein the data cache request message carries original data and an external key parameter corresponding to the original data; obtaining a first internal key parameter of the original data by the storage equipment by adoption of a preset algorithm; combining the first internal key parameter and the original data to obtain packaging data; and storing a mapping relationship between the external key parameter and the first internal key parameter by the storage equipment, and storing a mapping relationship between the first internal key parameter and the packaging data.

Description

technical field [0001] The invention relates to the field of computer application software, in particular to a caching method and a storage device. Background technique [0002] With the popularity of the Internet, application software has entered a period of rapid development, but no matter how the application software develops, its essence lies in the processing of data. Internet products, in particular, have very high requirements for data processing delay. In this scenario, higher requirements are put forward for data caching technology. [0003] The current technology for caching data usually uses key-value pairs—(key, value) to cache data. Its main purpose is to cache data in the memory of the computer, reduce business queries on hard disk databases, and improve query speed. In normal business processing, the cached key (key) is easy to find when updating the cached data, for example: to cache user data, use the user id as the key (key), use the user data as the value...

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/0804
Inventor 杨斌
Owner MAIPU COMM 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