Method for updating cache of key-value distributed memory system

A distributed storage and caching technology, applied in the computer field, can solve problems such as increased database pressure, user visibility, and data inaccessibility

Inactive Publication Date: 2013-01-09
RUITING NETWORK TECH (SHANGHAI) CO LTD
View PDF2 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But there are generally two problems. First, when a table is not updated, it can support a large amount of visits, but when the table is updated, because the relevant cache cannot be deleted accurately, only the cache of the entire table can be deleted. They are all cleared, so that although the next time the cache data is consistent with the database, the moment the cache is cleared, the pressure on the databa...

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
  • Method for updating cache of key-value distributed memory system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Such as figure 1 As shown, the method for updating the key-value distributed storage system cache of the present invention includes:

[0023] (1) Initiate a query operation, assign a column name to each table, and use the algorithm "prefix_table name_SQL condition" to construct a keyword key, which represents this query and is used to check whether the key-value system is cached data;

[0024] If there is no cached data corresponding to the keyword, query the database to save the result S, and if there is a corresponding cache, return the result S directly;

[0025] (2) Use the keyword key in the query operation, put the returned result S into the key-value system, and record the value corresponding to the keyword in step (1) as S;

[0026] (3) The query operation uses the algorithm "table name_column name_value" to construct a keyword group keygroup according to the column name, which is used to save the keyword key in step (1);

[0027] (4) Register the keyword int...

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 method for updating cache of a key-value distributed memory system. The method includes: initiating inquiry operation, distributing a column name for each list, and building a keyword; inquiring database and storing a result S if data of the keyword corresponding to cache do not exist, and directly returning to the result S if corresponding cache exists; inputting the returned result S in a key-value system by the inquiry operation using the keyword key, and enabling a corresponding value of the keyword to be S; building a keyword group by the inquiry operation according to the column names; registering the keyword in the corresponding value of the keyword group; returning to the result S; initiating updating operation and building the keyword group according to updated conditions; inquiring whether the corresponding value exists in the cache according to the keyword group, and deleting the corresponding value and completing updating if the corresponding value exists; and otherwise, stopping updating. By the method for updating cache of the key-value distributed memory system, the cache of the key-value distributed memory system can be kept persistently, and the related cache can be eliminated immediately during data updating, and a user can be guaranteed to see the latest data.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method for updating the cache of a key-value distributed storage system. Background technique [0002] With the rapid development of the Internet, more and more people use the Internet. How to quickly respond to user requests has become one of the most important means for various Internet companies to win users. For example, the content provided by a website is very good and valuable, but users have to wait for dozens of seconds for each visit, so users will definitely lose after a long time. The core technical point to solve the fast response is how to use the cache efficiently, because compared with querying from the relational database, it is much faster to fetch data directly from the cache. Usually fetching data from the cache is at least faster than fetching data from the relational database. Data is more than 10 times faster and can support greater concurrent access. [0003] ...

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): G06F17/30
Inventor 宋武斌胡志明张尔宁
Owner RUITING NETWORK TECH (SHANGHAI) 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