Data cache device and method

A data cache and data technology, applied in transmission systems, electrical components, etc., can solve problems such as inconvenient reading of cached data, and achieve the effects of improving operating efficiency, improving efficiency, and reducing costs

Active Publication Date: 2018-11-20
NUBIA TECHNOLOGY CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to solve the problem that the existing data caching method makes it inconvenient to read the cached data

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

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0170] refer to Figure 14 , Figure 14 It is a schematic flowchart of the fourth embodiment of the data caching method of the present invention. Based on the first embodiment of the above data caching method, the step S10 includes:

[0171] Step S11, when the client reads data through the interface, determine the parameter class corresponding to the interface;

[0172] Step S12, obtaining the class name and parameter value of the parameter class;

[0173] Step S13, generating a cache key corresponding to the interface according to the class name and the parameter value.

[0174] When the client reads data through the interface, the data cache device determines the parameter class corresponding to the interface, and the parameter class is uniquely corresponding to the interface, that is, the parameter class of each interface is unique; The caching device obtains the class name and parameter value of the parameter class, and generates a cache key uniquely corresponding to t...

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 cache device, which includes: a generation module, used to generate a cache key according to interface information of the interface when a client reads data through an interface; a search module, used to cache Find the cache value corresponding to the cache key in the database; the storage module is used to read the data corresponding to the interface from the original database and return it to the client if the corresponding cache value is not found, and return the returned data Save to the cache database as the cache value. The invention also discloses a data cache method. The invention greatly improves the efficiency of data reading and improves the operating efficiency of the system.

Description

technical field [0001] The invention relates to the field of data cache, in particular to a data cache device and method. Background technique [0002] At present, the general data caching scheme is to map the data in the original database to the cache database one by one. Using this method to map all the data in the original database to the cache database not only takes up a huge amount of memory space, but also requires hardware The cost is high, and at the same time, the data records in the original database are directly mapped to the cache database in this way, which makes it very inconvenient to read the cache data. When reading data from the cache database, the data in the cache database needs to be read Take it out, convert it into an object, then take out the data required by the client from the object, and finally convert the taken out data into a string and send it to the client. It takes two data conversions to get out the data required by the client. data, reduc...

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 Patents(China)
IPC IPC(8): H04L29/06
CPCH04L67/568
Inventor 倪秉炬
Owner NUBIA TECHNOLOGY 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