CN111190928A - Cache processing method and device, computer equipment and storage medium - Google Patents

Cache processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111190928A
CN111190928A CN201911349295.2A CN201911349295A CN111190928A CN 111190928 A CN111190928 A CN 111190928A CN 201911349295 A CN201911349295 A CN 201911349295A CN 111190928 A CN111190928 A CN 111190928A
Authority
CN
China
Prior art keywords
value
key
target
database
redis
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
CN201911349295.2A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201911349295.2A priority Critical patent/CN111190928A/en
Publication of CN111190928A publication Critical patent/CN111190928A/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

Landscapes

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

Abstract

The embodiment of the invention discloses a cache processing method, a cache processing device, computer equipment and a storage medium, wherein the method comprises the following steps: if a cache creation request is received, target cache data needing to be cached in a target database is obtained; creating a plurality of key-value pairs to store target cache data; storing the key-value pair key-value into a memory database redis; if receiving a query request of a user, querying whether a corresponding target key value exists in a memory database redis received according to the query request; if the corresponding target key value exists in the memory database redis, reading the value corresponding to the target key value in the memory database redis to obtain the cache data. The invention provides a cache processing method based on data processing, which can improve the efficiency of data reading, reduce the reading frequency of a remote database and relieve the working pressure of the remote database.

Description

Cache processing method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a cache processing method and apparatus, a computer device, and a storage medium.
Background
In the automatic test work, the operation of the remote database is often involved, network transmission operations such as connection, execution, return and the like with the object database need to be performed each time the database operation is performed, although the time of the transmission process is short, when the database operation is performed on massive database data, the time consumption of the accumulation operation is prolonged along with the increase of the times of the network transmission operation, not only is the work efficiency reduced, but also the database reading efficiency is influenced, and the frequent database operation also increases the working pressure of the remote database, and further influences the service life of the remote database.
Disclosure of Invention
In view of this, embodiments of the present invention provide a cache processing method and apparatus, a computer device, and a storage medium, which can improve data reading efficiency, reduce reading frequency of a remote database, and relieve working pressure of the remote database.
In one aspect, an embodiment of the present invention provides a cache processing method, where the method includes:
if a cache creation request is received, target cache data needing to be cached in a target database is obtained;
creating a number of key-value pairs key-value to store the target cache data;
storing the key-value pair key-value into a memory database redis;
if an inquiry request of a user is received, inquiring whether a corresponding target key value exists in a memory database redis according to the inquiry request;
if the corresponding target key value exists in the memory database redis, reading the value corresponding to the target key value in the memory database redis to obtain the cache data.
In another aspect, an embodiment of the present invention provides a cache processing apparatus, where the apparatus includes:
the acquisition unit is used for acquiring target cache data needing to be cached in a target database if a cache creation request is received;
a creating unit, configured to create a plurality of key-value pairs to store the target cache data;
the storage unit is used for storing the key-value pair key-value into a memory database redis;
the query unit is used for querying whether a corresponding target key value exists in the memory database redis according to a query request if the query request of a user is received;
and the reading unit is used for reading the value corresponding to the target key value in the memory database redis to obtain the cache data if the corresponding target key value is inquired in the memory database redis.
In yet another aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the cache processing method described above when executing the computer program.
In still another aspect, the present invention further provides a computer-readable storage medium, where one or more computer programs are stored, and the one or more computer programs are executable by one or more processors to implement the cache processing method described above.
The embodiment of the invention provides a cache processing method, a cache processing device, computer equipment and a storage medium, wherein the method comprises the following steps: if a cache creation request is received, target cache data needing to be cached in a target database is obtained; creating a plurality of key-value pairs to store target cache data; storing the key-value pair key-value into a memory database redis; if receiving a query request of a user, querying whether a corresponding target key value exists in a memory database redis received according to the query request; if the corresponding target key value exists in the memory database redis, reading the value corresponding to the target key value in the memory database redis to obtain the cache data. The invention provides a cache processing method based on data processing, which realizes caching and reading of data in a memory database, can improve the efficiency of data reading, reduce the reading frequency of a remote database, and relieve the working pressure of the remote database.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a cache processing method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a cache processing method according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of a cache processing method according to an embodiment of the present invention;
fig. 4 is another schematic flow chart of a cache processing method according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a cache processing method according to another embodiment of the present invention;
fig. 6 is a schematic flow chart of a cache processing method according to another embodiment of the present invention;
fig. 7 is a schematic block diagram of a cache processing apparatus according to an embodiment of the present invention;
fig. 8 is another schematic block diagram of a cache processing apparatus according to an embodiment of the present invention;
fig. 9 is another schematic block diagram of a cache processing apparatus according to an embodiment of the present invention;
fig. 10 is another schematic block diagram of a cache processing apparatus according to an embodiment of the present invention;
fig. 11 is another schematic block diagram of a cache processing apparatus according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a computer 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 some, not all, embodiments of the present invention. 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.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a cache processing method according to an embodiment of the present invention, where the application scenario includes:
(1) and the server is used for providing back-end service of data transmission. The server is a computer device, may be a single server or a server cluster, may also be a cloud server, or may be a special web server, receives access from an external terminal, and is connected to the terminal through a wired network or a wireless network.
(2) The terminal shown in fig. 1 includes a terminal 1, a terminal 2, and a terminal 3, and the terminal obtains target cache data from a remote database on a server by accessing the remote database on the server, and caches the obtained target cache data in a memory database redis on the terminal. The terminal can be an electronic device such as a smart phone, a notebook computer, a tablet computer or a desktop computer, and the terminal accesses the server through a wired network or a wireless network.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a cache processing method according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S101 to S105.
S101, if a cache creation request is received, target cache data needing to be cached in a target database is obtained. Wherein the cache creation request includes instruction information for specifying data in the target database as the target cache data.
In the embodiment of the present invention, the target database may be an Oracle database, a MySQL database, or a Microsoft SQL Server database, and the specific type of the target database is not limited herein. In this embodiment, when connecting to a target database and acquiring data in the target database, a cache creation request sent by a user is received, where the cache creation request may be instruction information, and the instruction information is used to specify which data is used as target cache data, and perform cache processing on the specified target cache data. In some embodiments, the cache creation request sent by the user may be further received before the target database is connected and the data in the target database is acquired, or the cache creation request sent by the user may be further received after the target database is connected and the data in the target database is acquired; the specific time for receiving the cache creation request is not specifically limited herein, and may be selected according to actual situations.
As shown in fig. 3, after the target cache data that needs to be cached in the target database is obtained, step S101a is further included.
S101a, determining a database operation statement and a database connection string used when the user operates the target database to obtain the target cache data.
In the embodiment of the invention, the user acquires the target cache data from the target database by connecting the target database and performing corresponding database operation, wherein the database operation can be query operation, modification operation or deletion operation and the like. For example, for a query operation of a database, a query instruction of a user is queried by a processor according to a preset query condition (e.g., a preset query condition such as an SQL statement) and obtains target cache data in a target database. The database operation statement in this embodiment refers to an SQL statement when a user performs a database operation, the database connection string refers to a character string for implementing database connection, and in a Microsoft SQL Server database, a common writing method of the database connection string is as follows: data Source myServerAddress; initial Catalog myDataBase; user Id ═ myUsername; the platform is a platform, and the platform comprises a platform, a database, a platform, a user id and a platform Password.
S102, a plurality of key-value pairs are created to store the target cache data. And storing an index value in a key of the key-value pair, wherein the value stores target cache data.
In the embodiment of the invention, in order to realize the rapid search of data, the target cache data is stored in a form of creating key-value pairs, and specifically, the key-value pairs store the data in a manner of performing index storage on the corresponding target cache data according to keys. In this embodiment, a storage structure of keys and values is defined in a local memory, a corresponding relationship between the keys and the values is established, that is, a key-value pair key-value can be created, and when data is read, a corresponding data value is found by providing the key value, where the key stores an index value and the value stores target cache data.
As shown in fig. 4, the creating of the key-value pairs to store the target cache data includes the following steps S1021 to S1022.
S1021, defining a storage structure body of the key and the value in the key-value pair key-value in the local memory, and establishing a corresponding relation between the key and the value.
Specifically, the key is used for storing a value obtained by encrypting a database operation statement and a database connection string by using an MD5 algorithm, and the value is used for storing target cache data; and establishing a corresponding relation between the key and the value, so that the key and the value form one-to-one correspondence, and inquiring the value through the key value or inquiring the key value through the value. At present, the method for creating the key-value storage structure is already mature, and therefore, detailed description is not repeated in this embodiment.
S1022, taking a value obtained by performing MD5 algorithm encryption on a database operation statement and a database connection string used when the user operates the target database as a key value of the key-value pair key-value, taking the target cache data as a value of the key-value pair key-value, and storing the target cache data into the key-value pair key-value.
Specifically, the step of using a value obtained by encrypting a database operation statement and a database connection string used when the user operates the target database by using an MD5 algorithm as a key value of the key-value specifically includes the following steps: s1022a, splicing the database operation statement and the database connection string to obtain a spliced character string; s1022b, carrying out encryption based on MD5 algorithm on the spliced character string to obtain an encrypted character string; s1022c, carry on BASE64 code conversion to the said encryption string, get the code string; s1022d, adding an identifier to the encoded string, and using the encoded string with the identifier added as the key value of the key-value pair key-value.
More specifically, in this embodiment, a strcat () function is used to splice a database operation statement and a database connection string, where the splice statement of the strcat () function may be "char _ strcat (char _ strDestination, const char _ strSource)", and a string pointed to by a strSource is appended to the end of a string pointed to by a strDestination () function. MD5 is one of the hash algorithms (also called digest algorithm, hash algorithm) widely used by computers, which is to make large-capacity information "compressed" into a secret format before signing a private key with digital signature software (i.e. a byte string of any length is converted into a hexadecimal string of a fixed length. this embodiment encrypts the spliced character string by calling the open-source MD5 algorithm function to obtain an encrypted character string. BASE64 encodes the encrypted character string, and then converts the encoded data to obtain an encoded character string, wherein encoding with BASE64 has non-readability, i.e. the encoded data is not directly seen, and an identifier is added in front of the encoded character string obtained after conversion to ensure that the final encrypted format is the same as the code string in the original data, the identifier is set manually during algorithm writing, it has uniqueness. For example, when the database operation is a query operation, the query SQL statement used is selecta1from 1where 1 is 'c', the query SQL statement is concatenated with the database and then encrypted by MD5, and the identified value is obtained as a key value; when the database operation is a modification operation, the used modified SQL statement is updatet1seta1 ═ d ' where 1 ═ c ', the modified SQL statement is mapped to the following query SQL statement selecta1from 1where 1 ═ c ', then the query SQL statement is spliced with the database connection string and then encrypted in MD5, and the identified value is obtained as the key value.
S103, storing the key-value pair key-value into a memory database redis.
In the embodiment of the present invention, redis is an open-source, distributed, memory-based, and persistent key-value storage system. The redis is mainly characterized in that a memory is used for data access, the data reading and writing speed is greatly improved, and the performance of a computer cluster can be utilized by the redis due to the distributed design, so that the problem that the capacity of a single-computer memory is possibly insufficient is solved. The key value pair key-value stored with target cache data is stored in the redis by utilizing the characteristics of high-speed read-write and high concurrency capability of the redis when the server is started, and the key value format cache is constructed in the memory and is used for being called by the user.
S104, if receiving the query request of the user, querying whether the corresponding target key value exists in the memory database redis the memory database according to the query request.
In the embodiment of the invention, the query request comprises a key value transmitted by a user, for each query request of the user, the query request firstly enters a memory database redis to query whether the key value of the content to be queried at this time exists, and if not, the database connection is established and the database query is carried out; if the target key value is corresponding to the key value transmitted by the user in the memory database redis, the desired result can be directly inquired from the memory database redis without establishing database connection.
S105, if the corresponding target key value exists in the memory database redis, reading the value corresponding to the target key value in the memory database redis to obtain the cache data.
In the embodiment of the invention, if the corresponding target key value is inquired in the memory database redis, the target key value is determined according to the key value transmitted by the user, and then the value is determined according to the one-to-one correspondence relationship between the key and the value by the target key value, so that the corresponding value is read in the memory database redis to obtain the cache data required by the user.
As can be seen from the above, in the embodiment of the present invention, target cache data to be cached in the target database is obtained; creating a plurality of key-value pairs to store target cache data; storing the key-value pair key-value into a memory database redis; if receiving a query request of a user, querying whether a corresponding target key value exists in a memory database redis received according to the query request; if the corresponding target key value exists in the memory database redis, reading the value corresponding to the target key value in the memory database redis to obtain the cache data. The invention provides a cache processing method based on data processing, which realizes caching and reading of data in a memory database, can improve the efficiency of data reading, reduce the reading frequency of a remote database, and relieve the working pressure of the remote database.
Referring to fig. 5, fig. 5 is a schematic flow chart of a cache processing method according to another embodiment of the present invention. As shown in fig. 5, the method includes the following steps S201 to S206.
S201, if a cache creation request is received, target cache data needing to be cached in a target database is obtained. Wherein the cache creation request includes instruction information for specifying data in the target database as the target cache data.
In the embodiment of the present invention, the target database may be an Oracle database, a MySQL database, or a Microsoft SQL Server database, and the specific type of the target database is not limited herein. In this embodiment, when connecting to a target database and acquiring data in the target database, a cache creation request sent by a user is received, where the cache creation request may be instruction information, and the instruction information is used to specify which data is used as target cache data, and perform cache processing on the specified target cache data. In some embodiments, the cache creation request sent by the user may be further received before the target database is connected and the data in the target database is acquired, or the cache creation request sent by the user may be further received after the target database is connected and the data in the target database is acquired; the specific time for receiving the cache creation request is not specifically limited herein, and may be selected according to actual situations.
S202, a plurality of key-value pairs are created to store the target cache data. And storing an index value in a key of the key-value pair, wherein the value stores target cache data.
In the embodiment of the invention, in order to realize the rapid search of data, the target cache data is stored in a form of creating key-value pairs, and specifically, the key-value pairs store the data in a manner of performing index storage on the corresponding target cache data according to keys. In this embodiment, a storage structure of keys and values is defined in a local memory, a corresponding relationship between the keys and the values is established, that is, a key-value pair key-value can be created, and when data is read, a corresponding data value is found by providing the key value, where the key stores an index value and the value stores target cache data.
S203, storing the key-value pair key-value into an internal memory database redis.
In the embodiment of the present invention, redis is an open-source, distributed, memory-based, and persistent key-value storage system. The redis is mainly characterized in that a memory is used for data access, the data reading and writing speed is greatly improved, and the performance of a computer cluster can be utilized by the redis due to the distributed design, so that the problem that the capacity of a single-computer memory is possibly insufficient is solved. The key value pair key-value stored with target cache data is stored in the redis by utilizing the characteristics of high-speed read-write and high concurrency capability of the redis when the server is started, and the key value format cache is constructed in the memory and is used for being called by the user.
S204, if receiving the query request of the user, querying whether the corresponding target key value exists in the memory database redis the memory database according to the query request.
In the embodiment of the invention, the query request comprises a key value transmitted by a user, for each query request of the user, the query request firstly enters a memory database redis to query whether the key value of the content to be queried at this time exists, and if not, the database connection is established and the database query is carried out; if the target key value is corresponding to the key value transmitted by the user in the memory database redis, the desired result can be directly inquired from the memory database redis without establishing database connection.
S205, if the corresponding target key value exists in the memory database redis, reading the value corresponding to the target key value in the memory database redis to obtain the cache data.
In the embodiment of the invention, if the corresponding target key value is inquired in the memory database redis, the target key value is determined according to the key value transmitted by the user, and then the value is determined according to the one-to-one correspondence relationship between the key and the value by the target key value, so that the corresponding value is read in the memory database redis to obtain the cache data required by the user.
S206, if the corresponding target key value cannot be inquired in the memory database redis, the data is read by accessing the target database.
In the embodiment of the present invention, if the corresponding target key value is not queried in the internal memory DataBase redis, the target DataBase is accessed to read data, for example, the ORACLE DataBase, in this embodiment, the data table is obtained and read by connecting the ORACLE DataBase, and optionally, the ORACLE DataBase may be connected in a JDBC (Java DataBase Connectivity) manner, and the data table in the ORACLE DataBase is obtained; the method for connecting the ORACLE database may specifically be that a JDBC driver specifying the database is loaded in a development environment (such as a MyEclipse environment), and the JDBC driver is loaded and added in the development environment through a class. Creating an ORACLE database Connection object Connection through a DriverManager class, wherein the DriverManager class acts between a development program and a JDBC driver and is used for checking whether the loaded driver can establish Connection, and then creating a JDBCconnection object according to a URL link, a user name and a password of the ORACLE database through a getConnection method of the DriverManager class, wherein the format of the URL link is a protocol name + an IP address (a domain name) + a port + a database name, and the user name and the password refer to the user name and the password used when logging in the ORACLE database; creating a State object through a createStatement () method of the Connection object, wherein the State object is used for executing a static SQL Statement and returning an object of a generated result; and calling a related method of the State object to execute a corresponding SQL Statement, and finally closing the data Connection in time through a close () method of the Connection.
Referring to fig. 6, fig. 6 is a schematic flowchart of a cache processing method according to another embodiment of the present invention. As shown in fig. 6, the method includes the following steps S301 to S308.
S301, if a cache creation request is received, target cache data needing to be cached in a target database is obtained. Wherein the cache creation request includes instruction information for specifying data in the target database as the target cache data.
In the embodiment of the present invention, the target database may be an Oracle database, a MySQL database, or a microsoft sqlserver database, and the specific type of the target database is not limited herein. In this embodiment, when connecting to a target database and acquiring data in the target database, a cache creation request sent by a user is received, where the cache creation request may be instruction information, and the instruction information is used to specify which data is used as target cache data, and perform cache processing on the specified target cache data. In some embodiments, the cache creation request sent by the user may be further received before the target database is connected and the data in the target database is acquired, or the cache creation request sent by the user may be further received after the target database is connected and the data in the target database is acquired; the specific time for receiving the cache creation request is not specifically limited herein, and may be selected according to actual situations.
S302, a plurality of key-value pairs are created to store the target cache data. And storing an index value in a key of the key-value pair, wherein the value stores target cache data.
In the embodiment of the invention, in order to realize the rapid search of data, the target cache data is stored in a form of creating key-value pairs, and specifically, the key-value pairs store the data in a manner of performing index storage on the corresponding target cache data according to keys. In this embodiment, a storage structure of keys and values is defined in a local memory, a corresponding relationship between the keys and the values is established, that is, a key-value pair key-value can be created, and when data is read, a corresponding data value is found by providing the key value, where the key stores an index value and the value stores target cache data.
S303, storing the key-value pair key-value into an internal memory database redis.
In the embodiment of the present invention, redis is an open-source, distributed, memory-based, and persistent key-value storage system. The redis is mainly characterized in that a memory is used for data access, the data reading and writing speed is greatly improved, and the performance of a computer cluster can be utilized by the redis due to the distributed design, so that the problem that the capacity of a single-computer memory is possibly insufficient is solved. The key value pair key-value stored with target cache data is stored in the redis by utilizing the characteristics of high-speed read-write and high concurrency capability of the redis when the server is started, and the key value format cache is constructed in the memory and is used for being called by the user.
S304, if the key-value pair key-value is received and stored in the memory database redis, timing is started.
In the embodiment of the invention, a timing function is set on the terminal, and timing is started when the key-value pair key-value is detected to be stored in the memory database redis.
S305, judging whether the timing time reaches the preset time.
In the embodiment of the present invention, the preset time may be 1 minute, 2 minutes, or other preset times, and the preset time may also be a time defined by a user.
S306, if the timing time reaches the preset time, triggering the memory database redis to start a deleting instruction so as to delete the key-value pair key-value stored in the memory database redis.
In the embodiment of the present invention, the delete instruction is a delete operation, and when the storage time (i.e., the timing time in the embodiment) of the key-value pair in the memory database redis reaches a preset time, the delete instruction is automatically started in the memory database redis to delete the key-value pair stored in the memory database redis. By the method, the cache can be automatically cleared in the memory database redis on time, and the data redundancy of the memory database redis is avoided.
S307, if receiving the query request of the user, querying whether the corresponding target key value exists in the memory database redis performed according to the query request.
In the embodiment of the invention, the query request comprises a key value transmitted by a user, for each query request of the user, the query request firstly enters a memory database redis to query whether the key value of the content to be queried at this time exists, and if not, the database connection is established and the database query is carried out; if the target key value is corresponding to the key value transmitted by the user in the memory database redis, the desired result can be directly inquired from the memory database redis without establishing database connection.
S308, if the corresponding target key value exists in the memory database redis, reading the value corresponding to the target key value in the memory database redis to obtain the cache data.
In the embodiment of the invention, if the corresponding target key value is inquired in the memory database redis, the target key value is determined according to the key value transmitted by the user, and then the value is determined according to the one-to-one correspondence relationship between the key and the value by the target key value, so that the corresponding value is read in the memory database redis to obtain the cache data required by the user.
Referring to fig. 7, in response to the above-mentioned cache processing method, an embodiment of the present invention further provides a cache processing apparatus, where the apparatus 100 includes: the device comprises an acquisition unit 101, a creation unit 102, a storage unit 103, an inquiry unit 104 and a reading unit 105.
The obtaining unit 101 is configured to obtain target cache data that needs to be cached in a target database if a cache creation request is received. Wherein the cache creation request includes instruction information for specifying data in the target database as the target cache data.
A creating unit 102, configured to create a plurality of key-value pairs to store the target cache data. And storing an index value in a key of the key-value pair, wherein the value stores target cache data.
The storage unit 103 is configured to store the key-value pair key-value in the internal memory database redis.
The query unit 104 is configured to, if a query request of a user is received, query whether a corresponding target key value exists in the memory database redis according to the query request.
The reading unit 105 is configured to, if a corresponding target key value is found in the memory database redis, read a value corresponding to the target key value in the memory database redis to obtain cache data.
As can be seen from the above, in the embodiment of the present invention, target cache data to be cached in the target database is obtained; creating a plurality of key-value pairs to store target cache data; storing the key-value pair key-value into a memory database redis; if receiving a query request of a user, querying whether a corresponding target key value exists in a memory database redis received according to the query request; if the corresponding target key value exists in the memory database redis, reading the value corresponding to the target key value in the memory database redis to obtain the cache data. The invention provides a cache processing method based on data processing, which realizes caching and reading of data in a memory database, can improve the efficiency of data reading, reduce the reading frequency of a remote database, and relieve the working pressure of the remote database.
Referring to fig. 8, the apparatus 100 further includes: the determination unit 101A.
A determining unit 101A, configured to determine a database operation statement and a database connection string used when the user operates the target database to obtain the target cache data.
Referring to fig. 9, the creating unit 102 includes a defining unit 102a and a creating sub-unit 102 b.
The defining unit 102a is configured to define a storage structure of a key and a value in the key-value pair key-value in a local memory, and establish a correspondence between the key and the value.
The creating subunit 102b is configured to use a value obtained by performing MD5 algorithm encryption on a database operation statement and a database connection string used when the target database is operated by the user as a key value of the key-value pair key-value, use the target cache data as a value of the key-value pair key-value, and store the target cache data in the key-value pair key-value.
Referring to fig. 10, in response to the above-mentioned cache processing method, an embodiment of the present invention further provides a cache processing apparatus, where the apparatus 200 includes: an acquisition unit 201, a creation unit 202, a storage unit 203, an inquiry unit 204, a reading unit 205, and an access unit 206.
The obtaining unit 201 is configured to obtain target cache data that needs to be cached in the target database if a cache creation request is received. Wherein the cache creation request includes instruction information for specifying data in the target database as the target cache data.
A creating unit 202, configured to create a plurality of key-value pairs to store the target cache data. And storing an index value in a key of the key-value pair, wherein the value stores target cache data.
The storage unit 203 is configured to store the key-value pair key-value in the in-memory database redis.
The querying unit 204 is configured to, if a query request of a user is received, query whether a corresponding target key value exists in the in-memory database redis according to the query request.
The reading unit 205 is configured to, if a corresponding target key value is found in the memory database redis, read a value corresponding to the target key value in the memory database redis to obtain the cache data.
The accessing unit 206 is configured to access the target database to read data if the corresponding target key value is not queried in the in-memory database redis.
Referring to fig. 11, in response to the above-mentioned cache processing method, an embodiment of the present invention further provides a cache processing apparatus, where the apparatus 300 includes: an acquisition unit 301, a creation unit 302, a storage unit 303, a timing unit 304, a judgment unit 305, a deletion unit 306, an inquiry unit 307, and a reading unit 308.
The obtaining unit 301 is configured to, if a cache creation request is received, obtain target cache data that needs to be cached in a target database. Wherein the cache creation request includes instruction information for specifying data in the target database as the target cache data.
A creating unit 302, configured to create a plurality of key-value pairs key-values to store the target cache data. And storing an index value in a key of the key-value pair, wherein the value stores target cache data.
The storage unit 303 is configured to store the key-value pair key-value in the in-memory database redis.
And the timing unit 304 is configured to start timing if receiving an operation of storing the key-value pair key-value into the memory database redis.
A judging unit 305, configured to judge whether the timing time reaches a preset time.
The deleting unit 306 is configured to trigger the memory database redis to start a deleting instruction to delete the key-value pair key-value stored in the memory database redis if the timing time reaches a preset time.
The querying unit 307 is configured to query whether a corresponding target key value exists in the memory database redis according to a query request if the query request of the user is received.
The reading unit 308 is configured to, if a corresponding target key value is found in the in-memory database redis, read a value corresponding to the target key value in the in-memory database redis to obtain cached data.
The cache processing device corresponds to the cache processing method one to one, and the specific principle and process thereof are the same as those of the method described in the above embodiment, and are not described again.
The above-described cache processing apparatus may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 12.
FIG. 12 is a schematic diagram of a computer device according to the present invention. The equipment can be a terminal or a server, wherein the terminal can be an electronic device with a communication function and a voice input function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer and the like. The server may be an independent server or a server cluster composed of a plurality of servers. Referring to fig. 12, the computer apparatus 500 includes a processor 502, a nonvolatile storage medium 503, an internal memory 504, and a network interface 505, which are connected by a system bus 501. The non-volatile storage medium 503 of the computer device 500 may store an operating system 5031 and a computer program 5032, and when the computer program 5032 is executed, the processor 502 may be caused to execute a cache processing method. The processor 502 of the computer device 500 is used to provide computing and control capabilities that support the overall operation of the computer device 500. The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, which when executed by the processor causes the processor 502 to perform a caching method. The network interface 505 of the computer device 500 is used for network communication. Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 implements the following operations when executing the computer program:
if a cache creation request is received, target cache data needing to be cached in a target database is obtained; wherein the cache creation request includes instruction information for specifying data in the target database as the target cache data;
creating a plurality of key-value pairs to store the target cache data, wherein an index value is stored in a key of the key-value pairs, and the target cache data is stored in a value;
storing the key-value pair key-value into a memory database redis;
if an inquiry request of a user is received, inquiring whether a corresponding target key value exists in a memory database redis according to the inquiry request;
if the corresponding target key value exists in the memory database redis, reading the value corresponding to the target key value in the memory database redis to obtain the cache data.
In one embodiment, the processor 502, when executing the computer program, further performs the following:
and determining a database operation statement and a database connection string used when the user operates the target database to obtain the target cache data.
In one embodiment, the creating a plurality of key-value pairs key-values to store the target cache data includes:
defining a storage structure body of the key and the value in the key-value pair key-value in a local memory, and establishing a corresponding relation between the key and the value;
and taking a value obtained by performing MD5 algorithm encryption on a database operation statement and a database connection string used when a user operates the target database as a key value of the key-value pair key-value, taking the target cache data as a value of the key-value pair key-value, and storing the target cache data into the key-value pair key-value.
In an embodiment, the using a value obtained by performing MD5 algorithm encryption on a database operation statement and a database connection string used when a user operates the target database as a key value of the key-value specifically includes:
splicing the database operation statement and the database connection string to obtain a spliced character string;
encrypting the spliced character string based on an MD5 algorithm to obtain an encrypted character string;
performing BASE64 encoding conversion on the encrypted character string to obtain an encoded character string;
and adding an identifier on the coded character string, and taking the coded character string with the identifier as a key value of the key-value pair key-value.
In one embodiment, the processor 502, when executing the computer program, further performs the following:
and if the corresponding target key value cannot be inquired in the memory database redis, accessing the target database to read the data.
In one embodiment, the processor 502, when executing the computer program, further performs the following:
if the key-value pair key-value is received and stored in the memory database redis, timing is started;
judging whether the timing time reaches a preset time or not;
and if the timing time reaches the preset time, triggering the memory database redis to start a deleting instruction so as to delete the key-value pair key-value stored in the memory database redis.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 12 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device only includes a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are the same as those of the embodiment shown in fig. 12, and are not described herein again.
The present invention provides a computer readable storage medium storing one or more computer programs, the one or more computer programs being executable by one or more processors to perform the steps of:
if a cache creation request is received, target cache data needing to be cached in a target database is obtained, wherein the cache creation request comprises instruction information, and the instruction information is used for appointing data in the target database as the target cache data;
creating a plurality of key-value pairs to store the target cache data, wherein an index value is stored in a key of the key-value pairs, and the target cache data is stored in a value;
storing the key-value pair key-value into a memory database redis;
if an inquiry request of a user is received, inquiring whether a corresponding target key value exists in a memory database redis according to the inquiry request;
if the corresponding target key value exists in the memory database redis, reading the value corresponding to the target key value in the memory database redis to obtain the cache data.
In one embodiment, the one or more computer programs, which are executable by one or more processors, further implement the steps of:
and determining a database operation statement and a database connection string used when the user operates the target database to obtain the target cache data.
In one embodiment, the creating a plurality of key-value pairs key-values to store the target cache data includes:
defining a storage structure body of the key and the value in the key-value pair key-value in a local memory, and establishing a corresponding relation between the key and the value;
and taking a value obtained by performing MD5 algorithm encryption on a database operation statement and a database connection string used when a user operates the target database as a key value of the key-value pair key-value, taking the target cache data as a value of the key-value pair key-value, and storing the target cache data into the key-value pair key-value.
In an embodiment, the using a value obtained by performing MD5 algorithm encryption on a database operation statement and a database connection string used when a user operates the target database as a key value of the key-value specifically includes:
splicing the database operation statement and the database connection string to obtain a spliced character string;
encrypting the spliced character string based on an MD5 algorithm to obtain an encrypted character string;
performing BASE64 encoding conversion on the encrypted character string to obtain an encoded character string;
and adding an identifier on the coded character string, and taking the coded character string with the identifier as a key value of the key-value pair key-value.
In one embodiment, the one or more computer programs, which are executable by one or more processors, further implement the steps of:
and if the corresponding target key value cannot be inquired in the memory database redis, accessing the target database to read the data.
In one embodiment, the one or more computer programs, which are executable by one or more processors, further implement the steps of:
if the key-value pair key-value is received and stored in the memory database redis, timing is started;
judging whether the timing time reaches a preset time or not;
and if the timing time reaches the preset time, triggering the memory database redis to start a deleting instruction so as to delete the key-value pair key-value stored in the memory database redis.
The foregoing storage medium of the present invention includes: various media that can store program codes, such as a magnetic disk, an optical disk, and a Read-Only Memory (ROM).
The elements of all embodiments of the present invention may be implemented by a general purpose integrated circuit, such as a CPU (central processing Unit), or by an ASIC (Application Specific integrated circuit).
The steps in the cache processing method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the cache processing device of the embodiment of the invention can be merged, divided and deleted according to actual needs.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of cache processing, the method comprising:
if a cache creation request is received, target cache data needing to be cached in a target database is obtained, wherein the cache creation request comprises instruction information, and the instruction information is used for appointing data in the target database as the target cache data;
creating a plurality of key-value pairs to store the target cache data, wherein an index value is stored in a key of the key-value pairs, and the target cache data is stored in a value;
storing the key-value pair key-value into a memory database redis;
if an inquiry request of a user is received, inquiring whether a corresponding target key value exists in a memory database redis according to the inquiry request;
if the corresponding target key value exists in the memory database redis, reading the value corresponding to the target key value in the memory database redis to obtain the cache data.
2. The method of claim 1, wherein after the obtaining target cached data that needs to be cached in the target database, the method further comprises:
and determining a database operation statement and a database connection string used when the user operates the target database to obtain the target cache data.
3. The method of claim 2, wherein the creating key-value pairs to store the target cache data comprises:
defining a storage structure body of the key and the value in the key-value pair key-value in a local memory, and establishing a corresponding relation between the key and the value;
and taking a value obtained by performing MD5 algorithm encryption on a database operation statement and a database connection string used when a user operates the target database as a key value of the key-value pair key-value, taking the target cache data as a value of the key-value pair key-value, and storing the target cache data into the key-value pair key-value.
4. The method according to claim 3, wherein the using a value obtained by performing MD5 algorithm encryption on a database operation statement and a database connection string used when a user operates the target database as the key value of the key-value pair key-value specifically includes:
splicing the database operation statement and the database connection string to obtain a spliced character string;
encrypting the spliced character string based on an MD5 algorithm to obtain an encrypted character string;
performing BASE64 encoding conversion on the encrypted character string to obtain an encoded character string;
and adding an identifier on the coded character string, and taking the coded character string with the identifier as a key value of the key-value pair key-value.
5. The method of claim 1, wherein the method further comprises:
and if the corresponding target key value cannot be inquired in the memory database redis, accessing the target database to read the data.
6. The method of claim 1, wherein after the storing the key-value pair key-value into an in-memory database redis, the method further comprises:
if the key-value pair key-value is received and stored in the memory database redis, timing is started;
judging whether the timing time reaches a preset time or not;
and if the timing time reaches the preset time, triggering the memory database redis to start a deleting instruction so as to delete the key-value pair key-value stored in the memory database redis.
7. A cache processing apparatus, the apparatus comprising:
the acquisition unit is used for acquiring target cache data needing to be cached in a target database if a cache creation request is received;
a creating unit, configured to create a plurality of key-value pairs to store the target cache data;
the storage unit is used for storing the key-value pair key-value into a memory database redis;
the query unit is used for querying whether a corresponding target key value exists in the memory database redis according to a query request if the query request of a user is received;
and the reading unit is used for reading the value corresponding to the target key value in the memory database redis to obtain the cache data if the corresponding target key value is inquired in the memory database redis.
8. The apparatus of claim 7, wherein the apparatus further comprises:
and the determining unit is used for determining a database operation statement and a database connection string which are used when the target database is operated by a user to obtain the target cache data.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the cache processing method according to any of claims 1-6 when executing the computer program.
10. A computer-readable storage medium storing one or more computer programs, the one or more computer programs being executable by one or more processors to implement the cache processing method according to any one of claims 1 to 6.
CN201911349295.2A 2019-12-24 2019-12-24 Cache processing method and device, computer equipment and storage medium Pending CN111190928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911349295.2A CN111190928A (en) 2019-12-24 2019-12-24 Cache processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911349295.2A CN111190928A (en) 2019-12-24 2019-12-24 Cache processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111190928A true CN111190928A (en) 2020-05-22

Family

ID=70705871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911349295.2A Pending CN111190928A (en) 2019-12-24 2019-12-24 Cache processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111190928A (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111723092A (en) * 2020-06-08 2020-09-29 阿里巴巴集团控股有限公司 Data processing method and device
CN112131242A (en) * 2020-08-03 2020-12-25 福建威盾科技集团有限公司 Data rapid query method and device based on redis
CN112148387A (en) * 2020-10-14 2020-12-29 中国平安人寿保险股份有限公司 Method and device for preloading feedback information, computer equipment and storage medium
CN112187904A (en) * 2020-09-22 2021-01-05 四川长虹电器股份有限公司 Parameter decryption method and system based on multimedia system
CN112199392A (en) * 2020-07-30 2021-01-08 上海泛微网络科技股份有限公司 Cache management method and device and electronic equipment
CN112506971A (en) * 2020-12-14 2021-03-16 福建福讯人才服务有限公司 Automatic data caching method and system based on redis
CN112506961A (en) * 2020-12-28 2021-03-16 浪潮云信息技术股份公司 Method for improving data query efficiency
CN112699133A (en) * 2021-03-23 2021-04-23 浙江太美医疗科技股份有限公司 Database operation method and device and computer readable medium
CN112765215A (en) * 2021-01-19 2021-05-07 上海幻电信息科技有限公司 Data query method and device
CN112860960A (en) * 2021-03-15 2021-05-28 北京达佳互联信息技术有限公司 Data query method and device
CN113139081A (en) * 2021-04-27 2021-07-20 中山亿联智能科技有限公司 Method for reporting and reading user online playing information with high efficiency and low delay
CN113157629A (en) * 2021-04-20 2021-07-23 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN113220713A (en) * 2021-04-30 2021-08-06 北京达佳互联信息技术有限公司 Data query method and device, electronic equipment and storage medium
CN113282585A (en) * 2021-05-28 2021-08-20 山东浪潮通软信息科技有限公司 Report calculation method, device, equipment and medium
CN113282626A (en) * 2021-05-31 2021-08-20 平安国际智慧城市科技股份有限公司 Redis-based data caching method and device, computer equipment and storage medium
CN113467896A (en) * 2021-07-28 2021-10-01 咪咕数字传媒有限公司 Cluster service current limiting method and device, computing equipment and storage medium
CN113590622A (en) * 2021-07-28 2021-11-02 中国人民银行清算总中心 Distributed data access method and device
CN113626483A (en) * 2021-08-18 2021-11-09 重庆允成互联网科技有限公司 Front-end caching method, system, equipment and storage medium for filling forms
CN113949438A (en) * 2021-09-24 2022-01-18 成都飞机工业(集团)有限责任公司 Unmanned aerial vehicle communication method, device, equipment and storage medium
CN114237806A (en) * 2021-12-29 2022-03-25 瀚云科技有限公司 Page information display method and device, electronic equipment and storage medium
CN114357337A (en) * 2022-01-11 2022-04-15 平安普惠企业管理有限公司 Cache management method, device, equipment and storage medium
CN115048390A (en) * 2022-08-16 2022-09-13 国能日新科技股份有限公司 Data storage method and device based on influxdb
CN115203159A (en) * 2022-07-25 2022-10-18 北京字跳网络技术有限公司 Data storage method and device, computer equipment and storage medium
CN116009949A (en) * 2023-03-28 2023-04-25 税友软件集团股份有限公司 Numerical value acquisition method, device, equipment and storage medium
CN116028525A (en) * 2023-03-31 2023-04-28 成都四方伟业软件股份有限公司 Intelligent management method for data slicing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4392676B1 (en) * 2009-06-25 2010-01-06 修平 西山 Database cache device with key / value store
CN102542034A (en) * 2011-12-23 2012-07-04 北京人大金仓信息技术股份有限公司 Database interface-based result set cache method
CN106599199A (en) * 2016-12-14 2017-04-26 国云科技股份有限公司 Data caching and synchronization method
CN109542907A (en) * 2018-11-21 2019-03-29 万兴科技股份有限公司 Database caches construction method, device, computer equipment and storage medium
CN109656957A (en) * 2018-12-14 2019-04-19 中国银行股份有限公司 Data query method and device based on Persistence Layer Framework

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4392676B1 (en) * 2009-06-25 2010-01-06 修平 西山 Database cache device with key / value store
CN102542034A (en) * 2011-12-23 2012-07-04 北京人大金仓信息技术股份有限公司 Database interface-based result set cache method
CN106599199A (en) * 2016-12-14 2017-04-26 国云科技股份有限公司 Data caching and synchronization method
CN109542907A (en) * 2018-11-21 2019-03-29 万兴科技股份有限公司 Database caches construction method, device, computer equipment and storage medium
CN109656957A (en) * 2018-12-14 2019-04-19 中国银行股份有限公司 Data query method and device based on Persistence Layer Framework

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111723092A (en) * 2020-06-08 2020-09-29 阿里巴巴集团控股有限公司 Data processing method and device
CN112199392A (en) * 2020-07-30 2021-01-08 上海泛微网络科技股份有限公司 Cache management method and device and electronic equipment
CN112131242A (en) * 2020-08-03 2020-12-25 福建威盾科技集团有限公司 Data rapid query method and device based on redis
CN112187904A (en) * 2020-09-22 2021-01-05 四川长虹电器股份有限公司 Parameter decryption method and system based on multimedia system
CN112148387A (en) * 2020-10-14 2020-12-29 中国平安人寿保险股份有限公司 Method and device for preloading feedback information, computer equipment and storage medium
CN112506971A (en) * 2020-12-14 2021-03-16 福建福讯人才服务有限公司 Automatic data caching method and system based on redis
CN112506961A (en) * 2020-12-28 2021-03-16 浪潮云信息技术股份公司 Method for improving data query efficiency
CN112765215A (en) * 2021-01-19 2021-05-07 上海幻电信息科技有限公司 Data query method and device
CN112860960A (en) * 2021-03-15 2021-05-28 北京达佳互联信息技术有限公司 Data query method and device
CN112860960B (en) * 2021-03-15 2024-02-23 北京达佳互联信息技术有限公司 Data query method and device
CN112699133A (en) * 2021-03-23 2021-04-23 浙江太美医疗科技股份有限公司 Database operation method and device and computer readable medium
CN113157629A (en) * 2021-04-20 2021-07-23 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN113139081B (en) * 2021-04-27 2023-10-27 中山亿联智能科技有限公司 Method for reporting online playing information of reading user with high efficiency and low delay
CN113139081A (en) * 2021-04-27 2021-07-20 中山亿联智能科技有限公司 Method for reporting and reading user online playing information with high efficiency and low delay
CN113220713A (en) * 2021-04-30 2021-08-06 北京达佳互联信息技术有限公司 Data query method and device, electronic equipment and storage medium
CN113220713B (en) * 2021-04-30 2024-01-09 北京达佳互联信息技术有限公司 Data query method and device, electronic equipment and storage medium
CN113282585A (en) * 2021-05-28 2021-08-20 山东浪潮通软信息科技有限公司 Report calculation method, device, equipment and medium
CN113282585B (en) * 2021-05-28 2023-12-29 浪潮通用软件有限公司 Report calculation method, device, equipment and medium
CN113282626A (en) * 2021-05-31 2021-08-20 平安国际智慧城市科技股份有限公司 Redis-based data caching method and device, computer equipment and storage medium
CN113590622A (en) * 2021-07-28 2021-11-02 中国人民银行清算总中心 Distributed data access method and device
CN113467896A (en) * 2021-07-28 2021-10-01 咪咕数字传媒有限公司 Cluster service current limiting method and device, computing equipment and storage medium
CN113626483A (en) * 2021-08-18 2021-11-09 重庆允成互联网科技有限公司 Front-end caching method, system, equipment and storage medium for filling forms
CN113949438A (en) * 2021-09-24 2022-01-18 成都飞机工业(集团)有限责任公司 Unmanned aerial vehicle communication method, device, equipment and storage medium
CN114237806B (en) * 2021-12-29 2024-03-12 瀚云科技有限公司 Page information display method and device, electronic equipment and storage medium
CN114237806A (en) * 2021-12-29 2022-03-25 瀚云科技有限公司 Page information display method and device, electronic equipment and storage medium
CN114357337A (en) * 2022-01-11 2022-04-15 平安普惠企业管理有限公司 Cache management method, device, equipment and storage medium
CN115203159B (en) * 2022-07-25 2024-06-04 北京字跳网络技术有限公司 Data storage method, device, computer equipment and storage medium
CN115203159A (en) * 2022-07-25 2022-10-18 北京字跳网络技术有限公司 Data storage method and device, computer equipment and storage medium
CN115048390B (en) * 2022-08-16 2022-11-01 国能日新科技股份有限公司 Data storage method and device based on influxdb
CN115048390A (en) * 2022-08-16 2022-09-13 国能日新科技股份有限公司 Data storage method and device based on influxdb
CN116009949B (en) * 2023-03-28 2023-08-29 税友软件集团股份有限公司 Numerical value acquisition method, device, equipment and storage medium
CN116009949A (en) * 2023-03-28 2023-04-25 税友软件集团股份有限公司 Numerical value acquisition method, device, equipment and storage medium
CN116028525A (en) * 2023-03-31 2023-04-28 成都四方伟业软件股份有限公司 Intelligent management method for data slicing

Similar Documents

Publication Publication Date Title
CN111190928A (en) Cache processing method and device, computer equipment and storage medium
KR101035302B1 (en) A cloud system and a method of compressing and transmtting files in a cloud system
CN109995881B (en) Load balancing method and device of cache server
CN110191428B (en) Data distribution method based on intelligent cloud platform
US11829624B2 (en) Method, device, and computer readable medium for data deduplication
US20140052762A1 (en) System, methods, and media for compressing non-relational database objects
US11580162B2 (en) Key value append
US20200183906A1 (en) Using an lsm tree file structure for the on-disk format of an object storage platform
KR102098415B1 (en) Cache management
US20180107404A1 (en) Garbage collection system and process
CN112615917A (en) Management method of storage equipment in storage system and storage system
CN110609708B (en) Method, apparatus and computer readable medium for data processing
US20120324560A1 (en) Token data operations
WO2014117729A9 (en) Scalable data deduplication
CN116848517A (en) Cache indexing using data addresses based on data fingerprints
JP5444728B2 (en) Storage system, data writing method in storage system, and data writing program
US10678754B1 (en) Per-tenant deduplication for shared storage
JP6418419B2 (en) Method and apparatus for hard disk to execute application code
US20150199373A1 (en) Methods and systems for data storage
US11151110B2 (en) Identification of records for post-cloning tenant identifier translation
US20220385596A1 (en) Protecting integration between resources of different services using service-generated dependency tags
CN113342275B (en) Method, apparatus and computer readable storage medium for accessing data at block link points
CN109857719B (en) Distributed file processing method, device, computer equipment and storage medium
US20200333957A1 (en) Method, device and computer program product for storage management
US20140359062A1 (en) Data transferring apparatus, data transferring system and non-transitory computer readable medium

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