CN110955682A - Method and device for deleting cache data, data cache and reading cache data - Google Patents

Method and device for deleting cache data, data cache and reading cache data Download PDF

Info

Publication number
CN110955682A
CN110955682A CN201911156061.6A CN201911156061A CN110955682A CN 110955682 A CN110955682 A CN 110955682A CN 201911156061 A CN201911156061 A CN 201911156061A CN 110955682 A CN110955682 A CN 110955682A
Authority
CN
China
Prior art keywords
data
structure data
value pair
cache
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911156061.6A
Other languages
Chinese (zh)
Inventor
金玉玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201911156061.6A priority Critical patent/CN110955682A/en
Publication of CN110955682A publication Critical patent/CN110955682A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a method and a device for deleting cache data, caching the data and reading the cache data, wherein the method for deleting the cache data comprises the following steps: when a cache data deleting instruction is acquired, determining first cache data to be deleted; deleting at least one level of cache structure data in the multi-level cache structure data corresponding to the first cache data from the local cache; the multi-level cache structure data comprises multi-level key value pair structure data, keys in first-level key value pair structure data in the multi-level cache structure data are preset metadata, values in last-level key value pair structure data are first cache data, and keys in other levels of key value pair structure data except the first level are values in the last-level key value pair structure data. The electronic equipment can successfully delete the cache data only by deleting at least one level of cache structure data in the multi-level cache structure data without deleting all the multi-level cache structure data, so that the failure probability of deleting the cache data can be greatly reduced.

Description

Method and device for deleting cache data, data cache and reading cache data
Technical Field
The present invention relates to the field of data caching technologies, and in particular, to a method and an apparatus for deleting cached data, caching data, and reading cached data.
Background
Data caching is a storage technology of data copies, and a scheme capable of improving service performance is to store the data copies as cache data in a local cache for use when needed. The cached data needs to be deleted regularly or irregularly, for example, when the data is updated or deleted, the corresponding cached data in the local cache needs to be cleared based on the requirement of data consistency. In addition, since the storage amount of the local cache is limited, the cache data generally has an expiration date attribute, and when the storage duration of the cache data reaches the limited duration, the cache data also needs to be cleared.
The current cache data is stored in the form of key value data, wherein the key may be preset data, and the value is the cache data. When the cache data is deleted, the cache interface is called to delete all the data of the key value, if the data is not deleted completely, for example, only one of the key and the value is deleted, the deletion of the cache data fails, and the failure probability is high.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for deleting cache data, a data cache, and a method and an apparatus for reading cache data, so as to reduce a failure probability of deleting cache data. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for deleting cache data, where the method includes:
when a cache data deleting instruction is acquired, determining first cache data to be deleted;
deleting at least one level of cache structure data in the multi-level cache structure data corresponding to the first cache data from a local cache;
the multi-level cache structure data comprises multi-level key value pair structure data, a key in first-level key value pair structure data in the multi-level key value pair structure data is preset metadata, a value in last-level key value pair structure data is the first cache data, and keys in other levels of key value pair structure data except the first level are values in the last-level key value pair structure data.
Optionally, the determining method of the values in the other key-value pair structure data except the last-stage key-value pair structure data includes:
coding keys in each target key value pair structure data according to a preset coding mode to obtain coded data, wherein the target key value pair structure data are other key value pair structure data except the last-stage key value pair structure data;
the encoded data is taken as the value in the target key-value pair structure data.
Optionally, the multi-level key-value pair structure data is two-level key-value pair structure data.
In a second aspect, an embodiment of the present invention provides a data caching method, where the method includes:
when a data caching instruction is obtained, determining target data to be cached;
writing the target data into a value in the last-level key value pair structure data in the multi-level cache structure data in the local cache;
the multi-level cache structure data comprises multi-level key value pair structure data, keys in the first-level key value pair structure data in the multi-level key value pair structure data are preset metadata, and keys in the key value pair structure data except the first-level key value pair structure data are values in the previous-level key value pair structure data.
Optionally, the determining method of the values in the other key-value pair structure data except the last-stage key-value pair structure data includes:
coding keys in each target key value pair structure data according to a preset coding mode to obtain coded data, wherein the target key value pair structure data are other key value pair structure data except the last-stage key value pair structure data;
the encoded data is taken as the value in the target key-value pair structure data.
Optionally, the multi-level key-value pair structure data is two-level key-value pair structure data.
In a third aspect, an embodiment of the present invention provides a method for reading cache data, where the method includes:
when a cache data reading instruction is obtained, determining second cache data to be read;
searching target multi-level cache structure data corresponding to the pre-established second cache data from a local cache;
reading the second cache data based on the target multi-level cache structure data;
the target multi-level cache structure data comprises multi-level key value pair structure data, a key in first-level key value pair structure data in the multi-level key value pair structure data is preset metadata, a value in last-level key value pair structure data is second cache data, and keys in other levels of key value pair structure data except the first level are values in the last-level key value pair structure data.
Optionally, the step of reading the second cache data based on the target multi-level cache structure data includes:
acquiring first-level key value pair structure data from the target multi-level cache structure data;
taking the value in the obtained key-value pair structure data as the key of the next-level key-value pair structure data, and obtaining the value of the next-level key-value pair structure data;
and obtaining the second cache data until the value of the last-level key value pair structure data is obtained.
Optionally, the determining method of the values in the other key-value pair structure data except the last-stage key-value pair structure data includes:
coding keys in each target key value pair structure data according to a preset coding mode to obtain coded data, wherein the target key value pair structure data are other key value pair structure data except the last-stage key value pair structure data;
the encoded data is taken as the value in the target key-value pair structure data.
Optionally, the multi-level key-value pair structure data is two-level key-value pair structure data.
In a fourth aspect, an embodiment of the present invention provides a device for deleting cache data, where the device includes:
the first cache data determining module is used for determining first cache data to be deleted when a cache data deleting instruction is obtained;
the cache data deleting module is used for deleting at least one level of cache structure data in the multi-level cache structure data corresponding to the first cache data from a local cache;
the multi-level cache structure data is pre-established through a first cache structure establishing module and comprises multi-level key value pair structure data, keys in first-level key value pair structure data in the multi-level key value pair structure data are preset metadata, values in last-level key value pair structure data are first cache data, and keys in other levels of key value pair structure data except the first level are values in the last-level key value pair structure data.
Optionally, the first cache structure establishing module includes:
the first data encoding unit is used for encoding keys in each target key value pair structure data according to a preset encoding mode to obtain encoded data, wherein the target key value pair structure data are other key value pair structure data except the last-stage key value pair structure data;
and the first key-value pair construction unit is used for taking the encoded data as the value in the target key-value pair structure data.
Optionally, the multi-level key-value pair structure data is two-level key-value pair structure data.
In a fifth aspect, an embodiment of the present invention provides a data caching apparatus, where the apparatus includes:
the target data determining module is used for determining target data to be cached when the data caching instruction is obtained;
the data cache module is used for writing the target data into a value in the last-level key value pair structure data in the multi-level cache structure data in the local cache;
the multi-level cache structure data is pre-established through a second cache structure establishing module and comprises multi-level key value pair structure data, keys in first-level key value pair structure data in the multi-level key value pair structure data are preset metadata, and keys in other levels except the first level key value pair structure data are values in the last-level key value pair structure data.
Optionally, the second cache structure establishing module includes:
the second data encoding unit is used for encoding keys in each target key value pair structure data according to a preset encoding mode to obtain encoded data, wherein the target key value pair structure data are other key value pair structure data except the last-stage key value pair structure data;
and the second key-value pair construction unit is used for taking the encoded data as the value in the target key-value pair structure data.
Optionally, the multi-level key-value pair structure data is two-level key-value pair structure data.
In a sixth aspect, an embodiment of the present invention provides a device for reading cache data, where the device includes:
the second cache data determining module is used for determining second cache data to be read when the cache data reading instruction is obtained;
the target structure data determining module is used for searching target multi-level cache structure data corresponding to the pre-established second cache data from a local cache;
a cache data reading module, configured to read the second cache data based on the target multi-level cache structure data;
the target multilevel cache structure data is pre-established through a third cache structure establishing module and comprises multilevel key value pair structure data, keys in first-level key value pair structure data in the multilevel key value pair structure data are preset metadata, values in last-level key value pair structure data are second cache data, and keys in other levels of key value pair structure data except the first level are values in the last-level key value pair structure data.
Optionally, the cache data reading module includes:
the structure data acquisition unit is used for acquiring first-level key value pair structure data from the target multi-level cache structure data;
and the cache data reading unit is used for taking the value in the acquired key-value pair structure data as the key of the next-level key-value pair structure data, acquiring the value of the next-level key-value pair structure data until the value of the last-level key-value pair structure data is acquired, and acquiring the second cache data.
Optionally, the third cache structure establishing module includes:
the third data encoding unit is used for encoding keys in each target key value pair structure data according to a preset encoding mode to obtain encoded data, wherein the target key value pair structure data are other key value pair structure data except the last-stage key value pair structure data;
and the third key-value pair construction unit is used for taking the encoded data as the value in the target key-value pair structure data.
Optionally, the multi-level key-value pair structure data is two-level key-value pair structure data.
In a seventh aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method steps of any one of the above aspects when executing the program stored in the memory.
In an eighth aspect, the present invention provides a computer-readable storage medium, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method steps of any one of the above aspects.
In the scheme provided by the embodiment of the present invention, when obtaining the cache data deletion instruction, the electronic device may determine first cache data to be deleted, and further delete at least one level of cache structure data in the multi-level cache structure data corresponding to the first cache data from the local cache, where the multi-level cache structure data includes multi-level key value pair structure data, a key in the first level key value pair structure data in the multi-level cache structure data is preset metadata, a value in the last level key value pair structure data is first cache data, and keys in key value pair structure data of other levels except the first level are values in the last level key value pair structure data. Therefore, the electronic device deletes at least one level of cache structure data in the multi-level cache structure data corresponding to the first cache data, and the multi-level cache structure data is invalid, that is, the electronic device can successfully delete the cache data only by deleting at least one level of cache structure data in the multi-level cache structure data without deleting all the multi-level cache structure data, so that the failure probability of deleting the cache data can be greatly reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for deleting cache data according to an embodiment of the present invention;
FIG. 2 is a flow chart of how key-value pair data is constructed according to the embodiment shown in FIG. 1;
fig. 3 is a flowchart of a data caching method according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for reading cache data according to an embodiment of the present invention;
FIG. 5 is a flowchart showing a specific example of step S403 in the embodiment shown in FIG. 4;
fig. 6 is a schematic structural diagram of a device for deleting cached data according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a data caching apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a reading apparatus for caching data according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to reduce the failure probability of deleting cache data, embodiments of the present invention provide a method for deleting cache data, a method for caching data, a method for reading cache data, an apparatus, an electronic device, and a non-transitory computer-readable storage medium.
First, a method for deleting cache data according to an embodiment of the present invention is described below.
The method for deleting the cache data provided by the embodiment of the invention can be applied to any electronic equipment, for example, a cloud server, a computer, a mobile phone and the like, and is not particularly limited herein. For convenience of description, hereinafter referred to as an electronic device.
As shown in fig. 1, a method for deleting cached data includes:
s101, when a cache data deleting instruction is obtained, determining first cache data to be deleted;
s102, deleting at least one level of cache structure data in the multi-level cache structure data corresponding to the first cache data from the local cache.
The multi-level cache structure data comprises multi-level key value pair structure data, keys in first-level key value pair structure data in the multi-level cache structure data are preset metadata, values in last-level key value pair structure data are the first cache data, and keys in other levels of key value pair structure data except the first level are values in the last-level key value pair structure data.
In the scheme provided by the embodiment of the present invention, when obtaining the cache data deletion instruction, the electronic device may determine first cache data to be deleted, and further delete at least one level of cache structure data in the multi-level cache structure data corresponding to the first cache data from the local cache, where the multi-level cache structure data includes multi-level key value pair structure data, a key in the first level key value pair structure data in the multi-level cache structure data is preset metadata, a value in the last level key value pair structure data is first cache data, and keys in key value pair structure data of other levels except the first level are values in the last level key value pair structure data. Therefore, the electronic device deletes at least one level of cache structure data in the multi-level cache structure data corresponding to the first cache data, and the multi-level cache structure data is invalid, that is, the electronic device can successfully delete the cache data only by deleting at least one level of cache structure data in the multi-level cache structure data without deleting all the multi-level cache structure data, so that the failure probability of deleting the cache data can be greatly reduced.
In order to reduce the failure probability of deleting the cache data, when the data is cached, the multi-level cache structure data corresponding to the data can be established, and the corresponding relation between the multi-level cache structure data and the cache data is recorded. Wherein the multi-level cache structure data may comprise multi-level key-value pair structure data.
The key in the first-level key-value pair structure data in the multi-level cache structure data may be preset metadata, the value in the last-level key-value pair structure data is cache data, and the key in the key-value pair structure data of other levels except the first level is a value in the previous-level key-value pair structure data.
And for the values in the key value pair structure data except the last level, the values can be set according to a preset mode, can also be randomly generated and the like, and the deletion of the cache data is not influenced.
The preset metadata may be any data, and is not particularly limited herein. In an embodiment, in order to conveniently determine the multi-level cache structure data corresponding to the first cache data to be deleted, preset metadata may be used as a data identifier corresponding to the first cache data.
For example, the structure of the N-level cache structure data may be as shown in the following table, where N is a positive integer:
rank of Key with a key body Value of
First stage Preset metadata A
Second stage A B
Stage N-1 P Q
The Nth stage Q Caching data
In this way, in step S101, when the electronic device acquires the cache data deletion instruction, the electronic device may determine the first cache data to be deleted. The cache data deleting instruction may carry a data identifier of the cache data, and the electronic device may determine the first cache data to be deleted according to the data identifier.
Since there may be more cache data in the local cache, then there may be multiple multi-level cache structure data, so the electronic device may determine the multi-level cache structure data corresponding to the first cache data in the local cache.
In an embodiment, the electronic device may determine, according to a correspondence between the pre-recorded multi-level cache structure data and the cache data, the multi-level cache structure data corresponding to the first cache data. Specifically, if the preset metadata is the data identifier corresponding to the first cache data, the electronic device may determine, as the multi-level cache structure data corresponding to the first cache data, the multi-level cache structure data in which the key in the first-level key value pair structure data is the same as the data identifier of the cache data carried by the cache data deletion instruction.
Furthermore, in step S102, the electronic device may delete at least one level of cache structure data in the multi-level cache structure data. Specifically, the electronic device may call a cache interface to delete the multi-level cache structure data.
Because the multi-level key value pair structure data included in the multi-level cache structure data has an associative relationship, that is, keys in the key value pair structure data of other levels except the first level are values in the key value pair structure data of the previous level, when the key value pair structure data of one level is deleted, the multi-level cache structure data becomes invalid data, the first cache data is also successfully deleted, and the first cache data cannot be read any more when the cache data is read subsequently.
For example, assuming that the multi-level cache structure data includes three levels of key value pair structure data, when the cache data is deleted, the cache data can be successfully deleted as long as at least one level of key value pair structure data is deleted, that is, the cache data can be successfully deleted in six ways, while the cache data can be successfully deleted only by deleting all key value pair data in the conventional cache data deletion way, which means that the cache data can be successfully deleted by adopting the cache data deletion method provided by the embodiment of the present invention, it can be seen that the failure probability of the cache data deletion can be greatly reduced by adopting the cache data deletion method provided by the embodiment of the present invention.
As an implementation manner of the embodiment of the present invention, as shown in fig. 2, the determining manner of the values in the key-value pair structure data other than the last-level key-value pair structure data may include:
s201, coding keys in the structural data of each target key value pair according to a preset coding mode to obtain coded data;
s202, the coded data is used as the value in the target key value pair structure data.
In the multi-level cache structure data, the first-level key value is preset metadata for a key in the structure data, and the corresponding value may be encoded data obtained by encoding the preset metadata according to a preset encoding mode. The preset encoding manner may be Base64, a hash Algorithm, an MD5Message Digest Algorithm (MD5Message-Digest Algorithm), and the like, which is not limited herein.
Since the keys in the key-value pair structure data of the other levels than the first level are values in the key-value pair structure data of the previous level, the keys in the key-value pair structure data of the second level can be determined to be the above encoded data. The electronic device may encode the encoded data according to a preset encoding mode, and the obtained encoded data is used as a value in the second-level key-value pair structure data, and so on, so that the multi-level cache structure data including the multi-level key-value pair structure data may be established.
That is to say, the electronic device may encode, according to a preset encoding manner, a key of each target key-value pair structure data to obtain encoded data, and then use the encoded data as a value in the target key-value pair structure data, where the target key-value pair structure data is other key-value pair structure data except the last-stage key-value pair structure data.
For the last level key-value pair structure data, the key is the value in the last level key-value pair structure data, and the value is the first cache data.
In this embodiment, the electronic device may encode the key in each target key value pair structure data according to a preset encoding mode to obtain encoded data, and the encoded data is used as the target key value, so that the electronic device may quickly and accurately determine values in other key value pair structure data except the last-level key value pair structure data, and is convenient for constructing multi-level key value pair structure data and deleting cache data.
As an implementation manner of the embodiment of the present invention, the multi-level key-value pair structure data may be two-level key-value pair structure data.
In this case, the key in the first-level key value pair structure data is the preset metadata, the corresponding value may be encoded data obtained by encoding the preset metadata according to the preset encoding mode, the key in the second-level key value pair structure data is the encoded data, and the corresponding value is the first cache data.
In this way, when the first cache data is deleted, the first cache data can be successfully deleted in the three modes as long as any one level of key value pair structure data in the two levels of key value pair structure data is deleted, or the two levels of key value pair structure data are deleted, and the probability of deletion failure is reduced. Meanwhile, the memory occupied by the two-stage key value pair structure data is small, so that the memory space can be saved as much as possible.
In this embodiment, the multi-level key-value pair structure data may be two-level key-value pair structure data, so that not only can the probability of failure in deleting the cache data be reduced, but also the memory space can be saved as much as possible.
Corresponding to the method for deleting the cache data, the embodiment of the invention also provides a data caching method. A data caching method provided in an embodiment of the present invention is described below.
The data caching method provided by the embodiment of the invention can be applied to any electronic equipment, such as a cloud server, a computer, a mobile phone and the like, and is not particularly limited herein. For convenience of description, hereinafter referred to as an electronic device.
As shown in fig. 3, a data caching method, the method comprising:
s301, when a data caching instruction is obtained, target data to be cached is determined;
s302, writing the target data into the value in the last level key value pair structure data in the multi-level cache structure data in the local cache.
The multi-level cache structure data comprises multi-level key value pair structure data, keys in the first-level key value pair structure data in the multi-level cache structure data are preset metadata, and keys in the key value pair structure data of other levels except the first level are values in the key value pair structure data of the upper level.
In the scheme provided by the embodiment of the present invention, when acquiring a data caching instruction, an electronic device may determine target data to be cached, and then write the target data into a value in last-level key-value pair structure data in multi-level cache structure data in a local cache, where the multi-level cache structure data includes the multi-level key-value pair structure data, a key in the first-level key-value pair structure data in the multi-level cache structure data is preset metadata, and keys in key-value pair structure data of other levels except the first level are values in the last-level key-value pair structure data. Therefore, when the electronic device deletes the target data, the multi-level cache structure data is invalid as long as at least one level of cache structure data in the multi-level cache structure data is deleted, that is, the electronic device can successfully delete the target data only by deleting at least one level of cache structure data in the multi-level cache structure data without deleting all the multi-level cache structure data, and the failure probability of deleting the cache data can be greatly reduced.
In step S301, when the electronic device obtains the data caching instruction, the electronic device may determine target data to be cached. The data caching instruction may carry a data identifier of the target data, and the electronic device may determine the target data to be cached according to the data identifier.
Furthermore, the electronic device may write the target data into a value in the last-level key value pair structure data in the multi-level cache structure data in the local cache, where an establishment manner of the multi-level cache structure data is described in the foregoing embodiment of the method for deleting the cache data, and is not described herein again.
For example, if the electronic device determines that the target data is the data tp, the data tp may be written into the value in the last-level key value pair structure data in the multi-level cache structure data in the local cache.
Therefore, when the target data needs to be deleted, the electronic equipment can delete the target data according to the method for deleting the cache data, and the probability of failure in deleting the target data can be greatly reduced.
As an implementation manner of the embodiment of the present invention, the determining manner of the values in the key-value pair structure data other than the last-level key-value pair structure data may include:
coding keys in the structural data of each target key value pair according to a preset coding mode to obtain coded data;
wherein the target key-value pair structure data is other key-value pair structure data except the last level key-value pair structure data.
The encoded data is taken as the value in the target key-value pair structure data.
As an implementation manner of the embodiment of the present invention, the multi-level key-value pair structure data may be two-level key-value pair structure data.
Corresponding to the data caching method, the embodiment of the invention also provides a reading method of the cached data. The following describes a method for reading cache data according to an embodiment of the present invention.
The method for reading the cache data provided by the embodiment of the invention can be applied to any electronic device, for example, a cloud server, a computer, a mobile phone, and the like, and is not particularly limited herein. For convenience of description, hereinafter referred to as an electronic device.
As shown in fig. 4, a method for reading cache data includes:
s401, when a cache data reading instruction is obtained, determining second cache data to be read;
s402, searching target multi-level cache structure data corresponding to the pre-established second cache data from a local cache;
s403, reading the second cache data based on the target multi-level cache structure data.
The target multi-level cache structure data comprises multi-level key value pair structure data, a key in first-level key value pair structure data in the multi-level cache structure data is preset metadata, a value in last-level key value pair structure data is the second cache data, and keys in other levels of key value pair structure data except the first level are values in the last-level key value pair structure data.
In the scheme provided by the embodiment of the present invention, when obtaining a cache data reading instruction, an electronic device may determine second cache data to be read, search target multi-level cache structure data corresponding to the second cache data that is established in advance from a local cache, and further read the second cache data based on the target multi-level cache structure data, where the target multi-level cache structure data includes multi-level key value pair structure data, a key in first-level key value pair structure data in the multi-level cache structure data is preset metadata, a value in last-level key value pair structure data is the second cache data, and keys in key value pair structure data other than the first level are values in last-level key value pair structure data. Since the key value pair structure data of each level have an association relationship, the electronic device may read the second cache data based on the key value pair structure data of each level.
In the step S401, when the electronic device obtains the cache data reading instruction, it may determine the second cache data to be read. The cache data reading instruction may carry a data identifier of the data to be read, and the electronic device may determine the cache data to be read, that is, the second cache data, according to the data identifier.
Next, in step S402, the electronic device may search the target multi-level cache structure data corresponding to the pre-established second cache data from the local cache. Since the local cache may have a plurality of multi-level cache structure data, in order to facilitate searching, when the electronic device establishes the multi-level cache structure data, the electronic device may record a corresponding relationship between the multi-level cache structure data and the cache data, and further, the electronic device may determine, according to the pre-recorded corresponding relationship, target multi-level cache structure data corresponding to the second cache data.
After determining the target multi-level cache structure data, the electronic device may read the second cache data based on the target multi-level cache structure data. Since each level of key value in the target multi-level cache structure data has an association relation with the structure data, the electronic device may read the second cache data based on the association relation.
As an implementation manner of the embodiment of the present invention, as shown in fig. 5, the step of reading the second cache data based on the target multi-level cache structure data may include:
s501, acquiring first-level key value pair structure data from the target multi-level cache structure data;
after the electronic device determines the target multi-level cache structure data, first-level key value pair structure data in the target multi-level cache structure data can be read, wherein keys of the first-level key value pair structure data are preset metadata, and values are preset or randomly generated data.
S502, taking the value in the obtained key value pair structure data as the key of the next level key value pair structure data, obtaining the value of the next level key value pair structure data until obtaining the value of the last level key value pair structure data, and obtaining the second cache data.
In the target multi-level cache structure data, keys in the key value pair structure data of other levels except the first level are values in the key value pair structure data of the upper level, so the electronic equipment can use the obtained values in the key value pair structure data as keys in the key value pair structure data of the lower level, and then the values of the key value pair structure data of the lower level can be obtained, and the like until the key value of the last level is obtained.
And in the target multi-level cache structure data, the value in the last-level key value pair structure data is the second cache data, and the second cache data is obtained at the moment.
For example, the target multi-level cache structure data includes two levels of key-value pair structure data, and the first level of key-value pair structure data is: bond: preset metadata, value: value 1; the second level key-value pair structure data is: bond: value1, value: and second cache data. Then, the electronic device may first obtain the first-level key-value pair structure data, determine that the value of the first-level key-value pair structure data is value1, then use value1 as the key of the second-level key-value pair structure data, and further obtain the value of the second-level key-value pair structure data, that is, the second cache data.
In this embodiment, the electronic device may obtain the first-level key-value pair structure data from the target multi-level cache structure data, use a value in the obtained key-value pair structure data as a key of the next-level key-value pair structure data, obtain a value of the next-level key-value pair structure data, and obtain the second cache data until obtaining a value of the last-level key-value pair structure data. The electronic device can quickly and accurately read the second cache data based on the target multi-level cache structure data.
As an implementation manner of the embodiment of the present invention, a determination manner of values in other key-value pair structure data except the last-level key-value pair structure data may include:
coding keys in the structural data of each target key value pair according to a preset coding mode to obtain coded data;
wherein the target key-value pair structure data is other key-value pair structure data except the last level key-value pair structure data.
The encoded data is taken as the value in the target key-value pair structure data.
As an implementation manner of the embodiment of the present invention, the multi-level key-value pair structure data may be two-level key-value pair structure data.
Corresponding to the method for deleting the cache data, the embodiment of the invention also provides a device for deleting the cache data. The following describes a device for deleting cache data according to an embodiment of the present invention.
As shown in fig. 6, an apparatus for deleting cached data includes:
the first cache data determining module 610 is configured to determine first cache data to be deleted when a cache data deletion instruction is obtained;
a cache data deleting module 620, configured to delete at least one level of cache structure data in the multiple levels of cache structure data corresponding to the first cache data from the local cache;
the multi-level cache structure data is pre-established by a first cache structure establishing module (not shown in fig. 6), and includes multi-level key-value pair structure data, a key in the first-level key-value pair structure data in the multi-level cache structure data is preset metadata, a value in the last-level key-value pair structure data is the first cache data, and keys in key-value pair structure data of other levels except the first level are values in the previous-level key-value pair structure data.
In the scheme provided by the embodiment of the present invention, when obtaining the cache data deletion instruction, the electronic device may determine first cache data to be deleted, and further delete at least one level of cache structure data in the multi-level cache structure data corresponding to the first cache data from the local cache, where the multi-level cache structure data includes multi-level key value pair structure data, a key in the first level key value pair structure data in the multi-level cache structure data is preset metadata, a value in the last level key value pair structure data is first cache data, and keys in key value pair structure data of other levels except the first level are values in the last level key value pair structure data. Therefore, the electronic device deletes at least one level of cache structure data in the multi-level cache structure data corresponding to the first cache data, and the multi-level cache structure data is invalid, that is, the electronic device can successfully delete the cache data only by deleting at least one level of cache structure data in the multi-level cache structure data without deleting all the multi-level cache structure data, so that the failure probability of deleting the cache data can be greatly reduced.
As an implementation manner of the embodiment of the present invention, the first cache structure establishing module may include:
a first data encoding unit (not shown in fig. 6) configured to encode, according to a preset encoding manner, a key in each target key-value pair structure data to obtain encoded data, where the target key-value pair structure data is other key-value pair structure data except the last-stage key-value pair structure data;
a first key-value pair construction unit (not shown in fig. 6) for treating the encoded data as a value in the target key-value pair structure data.
As an implementation manner of the embodiment of the present invention, the multi-level key-value pair structure data may be two-level key-value pair structure data.
Corresponding to the data caching method, the embodiment of the invention also provides a data caching device. A data caching apparatus according to an embodiment of the present invention is described below.
As shown in fig. 7, a data caching apparatus, the apparatus comprising:
a target data determining module 710, configured to determine target data to be cached when the data caching instruction is obtained;
a data caching module 720, configured to write the target data into a value in the last-level key-value pair structure data in the multi-level cache structure data in the local cache;
the multi-level cache structure data is pre-established by a second cache structure establishing module (not shown in fig. 7), and includes multi-level key-value pair structure data, a key in the first-level key-value pair structure data in the multi-level cache structure data is preset metadata, and keys in key-value pair structure data of other levels except the first level are values in the key-value pair structure data of the previous level.
In the scheme provided by the embodiment of the present invention, when acquiring a data caching instruction, an electronic device may determine target data to be cached, and then write the target data into a value in last-level key-value pair structure data in multi-level cache structure data in a local cache, where the multi-level cache structure data includes the multi-level key-value pair structure data, a key in the first-level key-value pair structure data in the multi-level cache structure data is preset metadata, and keys in key-value pair structure data of other levels except the first level are values in the last-level key-value pair structure data. Therefore, when the electronic device deletes the target data, the multi-level cache structure data is invalid as long as at least one level of cache structure data in the multi-level cache structure data is deleted, that is, the electronic device can successfully delete the target data only by deleting at least one level of cache structure data in the multi-level cache structure data without deleting all the multi-level cache structure data, and the failure probability of deleting the cache data can be greatly reduced.
As an implementation manner of the embodiment of the present invention, the second cache structure establishing module may include:
a second data encoding unit (not shown in fig. 7) configured to encode, according to a preset encoding manner, a key in each target key-value pair structure data to obtain encoded data, where the target key-value pair structure data is other key-value pair structure data except the last-stage key-value pair structure data;
a second key-value pair construction unit (not shown in fig. 7) for treating the encoded data as a value in the target key-value pair structure data.
As an implementation manner of the embodiment of the present invention, the multi-level key-value pair structure data may be two-level key-value pair structure data.
Corresponding to the above method for reading the cache data, an embodiment of the present invention further provides a device for reading the cache data. The following describes a reading apparatus for cache data according to an embodiment of the present invention.
As shown in fig. 8, a reading apparatus for buffering data, the apparatus comprising:
a second cache data determining module 810, configured to determine second cache data to be read when a cache data read instruction is obtained;
a target structure data determining module 820, configured to search, from a local cache, target multi-level cache structure data corresponding to the second cache data that is established in advance;
a cache data reading module 830, configured to read the second cache data based on the target multi-level cache structure data;
the target multi-level cache structure data is pre-established by a third cache structure establishing module (not shown in fig. 8), and includes multi-level key-value pair structure data, a key in the first-level key-value pair structure data in the multi-level cache structure data is preset metadata, a value in the last-level key-value pair structure data is the second cache data, and keys in key-value pair structure data of other levels except the first level are values in the previous-level key-value pair structure data.
In the scheme provided by the embodiment of the present invention, when obtaining a cache data reading instruction, an electronic device may determine second cache data to be read, search target multi-level cache structure data corresponding to the second cache data that is established in advance from a local cache, and further read the second cache data based on the target multi-level cache structure data, where the target multi-level cache structure data includes multi-level key value pair structure data, a key in first-level key value pair structure data in the multi-level cache structure data is preset metadata, a value in last-level key value pair structure data is the second cache data, and keys in key value pair structure data other than the first level are values in last-level key value pair structure data. Since the key value pair structure data of each level have an association relationship, the electronic device may read the second cache data based on the key value pair structure data of each level.
As an implementation manner of the embodiment of the present invention, the cache data reading module 830 may include:
a structure data obtaining unit (not shown in fig. 8) configured to obtain first-level key-value pair structure data from the target multi-level cache structure data;
a cache data reading unit (not shown in fig. 8), configured to use a value in the obtained key-value pair structure data as a key of next-level key-value pair structure data, obtain a value of the next-level key-value pair structure data until obtaining a value of the last-level key-value pair structure data, and obtain the second cache data.
As an implementation manner of the embodiment of the present invention, the third cache structure establishing module may include:
a third data encoding unit (not shown in fig. 8) configured to encode, according to a preset encoding manner, a key in each target key-value pair structure data to obtain encoded data, where the target key-value pair structure data is other key-value pair structure data except the last-stage key-value pair structure data;
a third key-value pair construction unit (not shown in fig. 8) for treating the encoded data as a value in the target key-value pair structure data.
As an implementation manner of the embodiment of the present invention, the multi-level key-value pair structure data may be two-level key-value pair structure data.
An embodiment of the present invention further provides an electronic device, as shown in fig. 9, the electronic device may include a processor 901, a communication interface 902, a memory 903, and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete mutual communication through the communication bus 904,
a memory 903 for storing computer programs;
the processor 901 is configured to implement the method for deleting cache data, the method for caching data, or the method for reading cache data according to any of the above embodiments when executing the program stored in the memory 903.
In the scheme provided by the embodiment of the invention, the electronic equipment deletes at least one level of cache structure data in the multi-level cache structure data corresponding to the cache data, and the multi-level cache structure data is invalid, that is, the electronic equipment can successfully delete the cache data only by deleting at least one level of cache structure data in the multi-level cache structure data without deleting all the multi-level cache structure data, so that the failure probability of deleting the cache data can be greatly reduced.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method for deleting cache data, the method for caching data, or the method for reading cache data in any of the above embodiments are implemented.
In the scheme provided by the embodiment of the invention, when the computer program is executed by the processor, the multi-level cache structure data is invalid due to the deletion of at least one level of cache structure data in the multi-level cache structure data corresponding to the cache data, that is, the electronic equipment can successfully delete the cache data only by deleting at least one level of cache structure data in the multi-level cache structure data without deleting all the multi-level cache structure data, so that the failure probability of deleting the cache data can be greatly reduced.
It should be noted that, for the embodiments of the data caching method, the reading method of the cached data, the apparatus, the electronic device and the computer-readable storage medium, since they are basically similar to the embodiments of the method, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the embodiments of the method.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (22)

1. A method for deleting cached data, the method comprising:
when a cache data deleting instruction is acquired, determining first cache data to be deleted;
deleting at least one level of cache structure data in the multi-level cache structure data corresponding to the first cache data from a local cache;
the multi-level cache structure data comprises multi-level key value pair structure data, a key in first-level key value pair structure data in the multi-level key value pair structure data is preset metadata, a value in last-level key value pair structure data is the first cache data, and keys in other levels of key value pair structure data except the first level are values in the last-level key value pair structure data.
2. The method of claim 1, wherein determining the manner of values in the key-value pair structure data other than the last level key-value pair structure data comprises:
coding keys in each target key value pair structure data according to a preset coding mode to obtain coded data, wherein the target key value pair structure data are other key value pair structure data except the last-stage key value pair structure data;
the encoded data is taken as the value in the target key-value pair structure data.
3. The method of claim 1 or 2, wherein the multi-level key-value pair structure data is two-level key-value pair structure data.
4. A method for caching data, the method comprising:
when a data caching instruction is obtained, determining target data to be cached;
writing the target data into a value in the last-level key value pair structure data in the multi-level cache structure data in the local cache;
the multi-level cache structure data comprises multi-level key value pair structure data, keys in the first-level key value pair structure data in the multi-level key value pair structure data are preset metadata, and keys in the key value pair structure data except the first-level key value pair structure data are values in the previous-level key value pair structure data.
5. The method of claim 4, wherein determining the manner of values in the key-value pair structure data other than the last level key-value pair structure data comprises:
coding keys in each target key value pair structure data according to a preset coding mode to obtain coded data, wherein the target key value pair structure data are other key value pair structure data except the last-stage key value pair structure data;
the encoded data is taken as the value in the target key-value pair structure data.
6. The method of claim 4 or 5, wherein the multi-level key-value pair structure data is two-level key-value pair structure data.
7. A method for reading cache data, the method comprising:
when a cache data reading instruction is obtained, determining second cache data to be read;
searching target multi-level cache structure data corresponding to the pre-established second cache data from a local cache;
reading the second cache data based on the target multi-level cache structure data;
the target multi-level cache structure data comprises multi-level key value pair structure data, a key in first-level key value pair structure data in the multi-level key value pair structure data is preset metadata, a value in last-level key value pair structure data is second cache data, and keys in other levels of key value pair structure data except the first level are values in the last-level key value pair structure data.
8. The method of claim 7, wherein said step of reading said second cache data based on said target multi-level cache structure data comprises:
acquiring first-level key value pair structure data from the target multi-level cache structure data;
taking the value in the obtained key-value pair structure data as the key of the next-level key-value pair structure data, and obtaining the value of the next-level key-value pair structure data;
and obtaining the second cache data until the value of the last-level key value pair structure data is obtained.
9. The method of claim 7, wherein determining the manner of values in the key-value pair structure data other than the last level key-value pair structure data comprises:
coding keys in each target key value pair structure data according to a preset coding mode to obtain coded data, wherein the target key value pair structure data are other key value pair structure data except the last-stage key value pair structure data;
the encoded data is taken as the value in the target key-value pair structure data.
10. The method of any of claims 7-9, wherein the multi-level key-value pair structure data is two-level key-value pair structure data.
11. An apparatus for deleting cached data, the apparatus comprising:
the first cache data determining module is used for determining first cache data to be deleted when a cache data deleting instruction is obtained;
the cache data deleting module is used for deleting at least one level of cache structure data in the multi-level cache structure data corresponding to the first cache data from a local cache;
the multi-level cache structure data is pre-established through a first cache structure establishing module and comprises multi-level key value pair structure data, keys in first-level key value pair structure data in the multi-level key value pair structure data are preset metadata, values in last-level key value pair structure data are the first cache data, and keys in other levels of key value pair structure data except the first level are values in the last-level key value pair structure data.
12. The apparatus of claim 11, wherein the first cache structure establishment module comprises:
the first data encoding unit is used for encoding keys in each target key value pair structure data according to a preset encoding mode to obtain encoded data, wherein the target key value pair structure data are other key value pair structure data except the last-stage key value pair structure data;
and the first key-value pair construction unit is used for taking the encoded data as the value in the target key-value pair structure data.
13. The apparatus of claim 11 or 12, wherein the multi-level key-value pair structure data is two-level key-value pair structure data.
14. A data caching apparatus, comprising:
the target data determining module is used for determining target data to be cached when the data caching instruction is obtained;
the data cache module is used for writing the target data into a value in the last-level key value pair structure data in the multi-level cache structure data in the local cache;
the multi-level cache structure data is pre-established through a second cache structure establishing module and comprises multi-level key value pair structure data, keys in first-level key value pair structure data in the multi-level key value pair structure data are preset metadata, and keys in other levels except the first level key value pair structure data are values in the last-level key value pair structure data.
15. The apparatus of claim 14, wherein the second cache structure establishment module comprises:
the second data encoding unit is used for encoding keys in each target key value pair structure data according to a preset encoding mode to obtain encoded data, wherein the target key value pair structure data are other key value pair structure data except the last-stage key value pair structure data;
and the second key-value pair construction unit is used for taking the encoded data as the value in the target key-value pair structure data.
16. The apparatus of claim 14 or 15, wherein the multi-level key-value pair structure data is two-level key-value pair structure data.
17. A reading apparatus for buffered data, the apparatus comprising:
the second cache data determining module is used for determining second cache data to be read when the cache data reading instruction is obtained;
the target structure data determining module is used for searching target multi-level cache structure data corresponding to the pre-established second cache data from a local cache;
a cache data reading module, configured to read the second cache data based on the target multi-level cache structure data;
the target multilevel cache structure data is pre-established through a third cache structure establishing module and comprises multilevel key value pair structure data, keys in first-level key value pair structure data in the multilevel key value pair structure data are preset metadata, values in last-level key value pair structure data are second cache data, and keys in other levels of key value pair structure data except the first level are values in the last-level key value pair structure data.
18. The apparatus of claim 17, wherein the cache data read module comprises:
the structure data acquisition unit is used for acquiring first-level key value pair structure data from the target multi-level cache structure data;
and the cache data reading unit is used for taking the value in the acquired key-value pair structure data as the key of the next-level key-value pair structure data, acquiring the value of the next-level key-value pair structure data until the value of the last-level key-value pair structure data is acquired, and acquiring the second cache data.
19. The apparatus of claim 17, wherein the third cache structure establishment module comprises:
the third data encoding unit is used for encoding keys in each target key value pair structure data according to a preset encoding mode to obtain encoded data, wherein the target key value pair structure data are other key value pair structure data except the last-stage key value pair structure data;
and the third key-value pair construction unit is used for taking the encoded data as the value in the target key-value pair structure data.
20. The apparatus of any of claims 17-19, wherein the multi-level key-value pair structure data is two-level key-value pair structure data.
21. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-10.
22. A computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method steps of any of claims 1-10.
CN201911156061.6A 2019-11-22 2019-11-22 Method and device for deleting cache data, data cache and reading cache data Pending CN110955682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911156061.6A CN110955682A (en) 2019-11-22 2019-11-22 Method and device for deleting cache data, data cache and reading cache data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911156061.6A CN110955682A (en) 2019-11-22 2019-11-22 Method and device for deleting cache data, data cache and reading cache data

Publications (1)

Publication Number Publication Date
CN110955682A true CN110955682A (en) 2020-04-03

Family

ID=69978238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911156061.6A Pending CN110955682A (en) 2019-11-22 2019-11-22 Method and device for deleting cache data, data cache and reading cache data

Country Status (1)

Country Link
CN (1) CN110955682A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527804A (en) * 2021-01-27 2021-03-19 中智关爱通(南京)信息科技有限公司 File storage method, file reading method and data storage system
CN113704115A (en) * 2021-08-30 2021-11-26 深圳金信诺高新技术股份有限公司 Problem positioning method and device for system development and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170139610A1 (en) * 2015-11-17 2017-05-18 Samsung Electronics Co., Ltd. System and methods for multi-level key-value store
CN107102896A (en) * 2016-02-23 2017-08-29 阿里巴巴集团控股有限公司 A kind of operating method of multi-level buffer, device and electronic equipment
CN107451146A (en) * 2016-05-31 2017-12-08 北京京东尚科信息技术有限公司 The method of data and data cached multi-level buffer device are read using multi-level buffer
CN107562804A (en) * 2017-08-08 2018-01-09 上海数据交易中心有限公司 Data buffer service system and method, terminal
CN107562905A (en) * 2017-09-08 2018-01-09 深圳市金立通信设备有限公司 Management method, server and the computer-readable recording medium of data
CN109299087A (en) * 2018-08-14 2019-02-01 中国平安财产保险股份有限公司 Data cache method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170139610A1 (en) * 2015-11-17 2017-05-18 Samsung Electronics Co., Ltd. System and methods for multi-level key-value store
CN107102896A (en) * 2016-02-23 2017-08-29 阿里巴巴集团控股有限公司 A kind of operating method of multi-level buffer, device and electronic equipment
CN107451146A (en) * 2016-05-31 2017-12-08 北京京东尚科信息技术有限公司 The method of data and data cached multi-level buffer device are read using multi-level buffer
CN107562804A (en) * 2017-08-08 2018-01-09 上海数据交易中心有限公司 Data buffer service system and method, terminal
CN107562905A (en) * 2017-09-08 2018-01-09 深圳市金立通信设备有限公司 Management method, server and the computer-readable recording medium of data
CN109299087A (en) * 2018-08-14 2019-02-01 中国平安财产保险股份有限公司 Data cache method, device, computer equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527804A (en) * 2021-01-27 2021-03-19 中智关爱通(南京)信息科技有限公司 File storage method, file reading method and data storage system
CN112527804B (en) * 2021-01-27 2022-09-16 中智关爱通(上海)科技股份有限公司 File storage method, file reading method and data storage system
CN113704115A (en) * 2021-08-30 2021-11-26 深圳金信诺高新技术股份有限公司 Problem positioning method and device for system development and computer equipment
CN113704115B (en) * 2021-08-30 2024-02-23 深圳金信诺高新技术股份有限公司 Problem positioning method and device for system development and computer equipment

Similar Documents

Publication Publication Date Title
US11853549B2 (en) Index storage in shingled magnetic recording (SMR) storage system with non-shingled region
US8843454B2 (en) Elimination of duplicate objects in storage clusters
CN107491523B (en) Method and device for storing data object
CN110347852B (en) File system embedded with transverse expansion key value storage system and file management method
CN110018998B (en) File management method and system, electronic equipment and storage medium
CN106951375B (en) Method and device for deleting snapshot volume in storage system
US10969962B2 (en) Compacting data in a dispersed storage network
US8935481B2 (en) Apparatus system and method for providing raw data in a level-two cache
CN104281533A (en) Data storage method and device
US11029891B2 (en) Hybrid distributed storage system to dynamically modify storage overhead and improve access performance
WO2023040200A1 (en) Data deduplication method and system, and storage medium and device
CN110955682A (en) Method and device for deleting cache data, data cache and reading cache data
CN109213450B (en) Associated metadata deleting method, device and equipment based on flash memory array
CN110597453A (en) Video data storage method and device in cloud storage system
CN109992469B (en) Method and device for merging logs
CN106484691B (en) data storage method and device of mobile terminal
CN112817962B (en) Data storage method and device based on object storage and computer equipment
JP2018526740A5 (en)
KR102175176B1 (en) Data classification method based on the number of character types, data classification devide and storage system
CN116820323A (en) Data storage method, device, electronic equipment and computer readable storage medium
CN103473179A (en) Background system and method for deleting repeating data in solid state disk
CN107506156B (en) Io optimization method of block device
US10795875B2 (en) Data storing method using multi-version based data structure
US9846553B2 (en) Organization and management of key-value stores
WO2021223669A1 (en) Metadata storage method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200403

RJ01 Rejection of invention patent application after publication