Cache data management method and device, storage medium and electronic equipment

A technology for caching data and management methods, which is applied in electronic digital data processing, special data processing applications, database indexing, etc., can solve the problems of reducing the maintenance efficiency and query efficiency of stored data, frequent maintenance and updating of stored data, etc., to improve maintenance. Efficiency and query efficiency, the effect of avoiding impact

Pending Publication Date: 2020-01-31
BEIKE TECH CO LTD
View PDF8 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in practical applications, the maintenance and update of stored data may be very frequent. When multiple maintainers frequently maintain and update stored data, clearing the full amount of data in the cache will have a great impact on the data query function, reducing the Maintenance efficiency and query efficiency of stored 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 management method and device, storage medium and electronic equipment
  • Cache data management method and device, storage medium and electronic equipment
  • Cache data management method and device, storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0066] figure 1 It is a schematic flowchart of the cache data management method provided in Embodiment 1 of the present application, as shown in figure 1 As shown, this embodiment mainly includes:

[0067] S101: Obtain an instruction, and determine the instruction type.

[0068] The implementation subject of the embodiment of the present application is a data server, usually a device that provides data query functions, such as a data query server, wherein the above-mentioned data server includes a cache area with a function of caching and storing data, and the data server is connected to a database. Stored data is stored in the database, and the data server can perform operations such as writing, reading, and deleting the stored data in the database.

[0069] After receiving the instruction, it is necessary to judge the instruction type. The command here is usually issued by the client that needs to operate on the stored data, or it can be issued by the data server itself. ...

Embodiment 2

[0087] The embodiment of the present application also provides another cache data management method. In order to manage the entire process of storing data, the cache data management method provided in Embodiment 2 of the present application includes a data query step, a data writing step, a data deletion step and Data update step.

[0088] The cache data management method provided in Embodiment 2 of the present application needs to firstly execute the steps of obtaining an instruction and determining the type of the instruction.

[0089] Such as figure 2 As shown, the data query steps in the cache data management method provided in Embodiment 2 of the present application specifically include:

[0090] S201: When the instruction type is a data query instruction, acquire a data address of the data to be searched and a category identifier of the data to be searched.

[0091] Before performing step S201, the steps of executing the acquisition instruction and determining the ins...

Embodiment 3

[0134] Such as Figure 6 As shown, the embodiment of the present application also provides a cache data management device 600, including:

[0135] An instruction acquiring module 601, configured to acquire the instruction and determine the instruction type;

[0136] The attribute acquisition module 602 is used to obtain the data address of the data to be checked and the category identification of the data to be checked when the instruction type is a data query instruction; it is also used to obtain the data address to be updated when the instruction type is a data update instruction. The category identification of the data; the data to be updated is the data to be checked and the query operation information to be cleared by the data update command in the cache;

[0137] Judging module 603, configured to judge whether the data to be checked exists in the cache according to the data address of the data to be checked and the category identifier of the data to be checked;

[013...

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 cache data management method and device, a storage medium and electronic equipment, and relates to a cache management technology. According to the specific scheme, the methodcomprises the steps of obtaining an instruction and interpreting an instruction type; when the instruction type is a data query instruction, obtaining a data address and a category identifier of theto-be-queried data; judging whether to-be-queried data exists in the cache region or not according to the data address and the category identifier, acquiring the to-be-queried data according to the data address when the to-be-queried data does not exist, writing the to-be-queried data and the query operation information into the cache region by taking the category identifier as an index, and sending the to-be-queried data; when the instruction type is a data updating instruction, obtaining a type identifier of to-be-checked data cleared by the data updating instruction; and clearing the to-be-queried data taking the category identifier as the index in the cache region and the query operation information. The influence on the data query function can be avoided, and the maintenance efficiency and query efficiency of the stored data are improved.

Description

technical field [0001] The present application relates to cache management technology, in particular to a cache data management method, device, storage medium and electronic equipment. Background technique [0002] When querying or maintaining stored data, it usually occurs that multiple maintenance parties query or maintain the same set of data respectively. The query will not change the stored data, but when the stored data is maintained, or the maintenance authority between the maintainer and the stored data is modified, the stored data needs to be updated. [0003] In the prior art, the buffer area for storing data is usually based on a hash (Hash) structure. Once the stored data needs to be updated, all the data in the buffer area will be cleared in order to ensure the consistency of the associated data. However, in practical applications, the maintenance and update of stored data may be very frequent. When multiple maintainers frequently maintain and update stored dat...

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): G06F16/2455G06F16/22G06F16/23
CPCG06F16/24552G06F16/2228G06F16/23
Inventor 温茜
Owner BEIKE 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