Cache data processing method, device and equipment and storage medium

A technology for caching data and processing methods, applied in the Internet field, can solve problems such as increasing workload, increasing nodes, and difficulty in processing multiple requests in parallel at the same time, so as to improve processing efficiency and prevent data loss

Active Publication Date: 2020-04-28
NANJING LINGXING TECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the capacity of the local cache is limited and cannot support the storage of large amounts of data, and the data will disappear with the restart of the application; although the distributed cache can be expanded, it will greatly increase the workload while adding nodes. The concurrency capability of QPS (Queries Per Second, the number of queries that can be processed per second) requires a large cost, and it is difficult to process multiple requests in parallel at the same time, resulting in low processing efficiency of 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
  • Cache data processing method, device and equipment and storage medium
  • Cache data processing method, device and equipment and storage medium
  • Cache data processing method, device and equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] figure 1 It is a schematic flowchart of a method for processing cached data provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of processing cached data. The method can be executed by a device for processing cached data at the client. The client obtains Computing nodes and local cache cluster information. Such as figure 1 As shown, the method specifically includes the following steps:

[0033] S110. In response to the data processing request, receive a key value of target data, and determine a target slot corresponding to the key value.

[0034] Wherein, the client receives the key value of the target data in the data processing request in response to the data processing request sent by the user. According to the key value of the target data, the client obtains the computing node, and can calculate the virtual slot corresponding to the key value of the target data. The calculated virtual slot is the target slot of the target ...

Embodiment 2

[0048] figure 2 It is a schematic flowchart of a buffer data processing method provided by Embodiment 2 of the present invention. This embodiment is further optimized on the basis of the foregoing embodiments. Such as figure 2 As shown, the cache data processing method provided in this embodiment specifically includes the following steps:

[0049] S210. In response to the data processing request, receive a key value of the target data, and determine a target slot corresponding to the key value.

[0050] S220. Determine a target node corresponding to the target slot according to the target slot; wherein, the target node is a storage area in the local cache.

[0051] S230. Send the target data on the distributed cache to the target node in the local cache according to the key value of the target data, so as to process the target data.

[0052] S240. In response to a data synchronization instruction issued by the user, synchronize the result data obtained by executing the o...

Embodiment 3

[0056] image 3 It is a structural block diagram of a cache data processing device provided in Embodiment 3 of the present invention, which can execute the cache data processing method provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. The device is configured on the client side, and the client side obtains computing nodes and local cache cluster information, such as image 3 As shown, the device specifically includes:

[0057] The target slot determination module 301 is configured to receive the key value of the target data in response to the data processing request, and determine the target slot corresponding to the key value;

[0058] A target node determination module 302, configured to determine a target node corresponding to the target slot according to the target slot; wherein, the target node is a storage area in the local cache;

[0059] The target data processing module 303 ...

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 embodiment of the invention discloses a cache data processing method and device, equipment and a storage medium. The method is executed by a client, the client acquires computing node and local cache cluster information, and the method comprises the following steps: receiving a key value of target data in response to a data processing request, and determining a target slot position corresponding to the key value; determining a target node corresponding to the target slot position according to the target slot position, wherein the target node is a storage area in a local cache; and sendingthe target data on the distributed cache to a target node of a local cache according to the key value of the target data so as to process the target data. According to the embodiment of the invention,the target node of the local cache is determined, and the data of the distributed cache is sent to the local cache to be processed, so that the problems that the local cache is difficult to expand and the distributed cache is low in concurrency are solved, and the data processing efficiency is improved.

Description

technical field [0001] Embodiments of the present invention relate to Internet technologies, and in particular, to a cache data processing method, device, device, and storage medium. Background technique [0002] With the development of Internet technology and the information age, the amount of information is increasing rapidly, requiring more storage space to cache data, and the requirements for data storage and high concurrency are getting higher and higher. [0003] In the prior art, data is often called and processed directly from a local cache or a distributed cache. However, the capacity of the local cache is limited and cannot support the storage of large amounts of data, and the data will disappear with the restart of the application; although the distributed cache can be expanded, it will greatly increase the workload while adding nodes. The concurrency capability of QPS (Queries Per Second, the number of queries that can be processed per second) requires a large c...

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): G06F3/06
CPCG06F3/0619G06F3/0656G06F3/067
Inventor 朱礼勇高建丰王子榕吕鑫高小勇董见雷
Owner NANJING LINGXING 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