Cache updating method and device

An update method and caching technology, which is applied in the direction of memory system, memory architecture access/allocation, special data processing applications, etc., can solve the problem of insufficient update pertinence, etc., and achieve the effect of automatic update, maintaining heat, and improving hit rate

Inactive Publication Date: 2017-09-01
WUHAN DOUYU NETWORK TECH CO LTD
View PDF4 Cites 32 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a cache update method and device, which overcomes the problem that the existing cache update timing is updated according to the update cycle and the pertinence is not strong

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 updating method and device
  • Cache updating method and device
  • Cache updating method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0045] see figure 1 , is a cache update method according to an embodiment of the present invention, which mainly includes: S1, receiving an access request sent by a client, wherein the access request includes the identifier of the data to be accessed and the corresponding identifier of the data table; S2, from the local data Find the data result corresponding to the access data identifier and the version information of the data result in the cache; and find the version information corresponding to the data table identifier information from the local version cache; Check whether the version information found in the version cache is consistent, and determine the update meth...

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 updating method and device. The method comprises the following steps of: S1, receiving an access request sent by a client, wherein the access request comprises a to-be-accessed data identifier and corresponding data table identification information; S2, searching a data result corresponding to the to-be-accessed data identifier and version information of the data result from a local data cache, and searching version information corresponding to the data table identification information from a local version cache; and S3, judging whether the version information searched from the local data cache is consistent with the version information searched from the local version cache or not, and determining an updating manner of the local data cache according to the judging result. Through the cache updating method and device, the automatic updating the local cache data is realized through the trigger of the user access request, so that the local cache data is consistent with the data in a server database.

Description

technical field [0001] The present invention relates to data cache technology, and more specifically, to a cache update method and device. Background technique [0002] At present, cache (caching refers to a key-value data storage scheme stored in memory, such as MEMCACHE or REDIS, etc.) is widely used in WEB applications. In order to provide a stable and efficient user experience, many high-traffic WEB applications will consider storing data in local caches. This method is much faster than reading data directly from the background server database, so that fewer servers can be used to support higher traffic. [0003] As the data in the background server database is continuously updated, the data in the local cache also needs to be updated. Currently, the usual update method is to manually update the local cache according to the update cycle. [0004] The method of updating the local cache according to the update cycle is not targeted for the data that users need to access,...

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): G06F17/30G06F12/0866G06F12/0804H04L29/08
CPCG06F12/0804G06F12/0866G06F16/2343G06F16/24552G06F2212/1021G06F2212/1032G06F2212/154G06F2212/163H04L67/5682
Inventor 余伟张文明陈少杰
Owner WUHAN DOUYU NETWORK 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