CN114238169A - Data caching method and device - Google Patents

Data caching method and device Download PDF

Info

Publication number
CN114238169A
CN114238169A CN202111413550.2A CN202111413550A CN114238169A CN 114238169 A CN114238169 A CN 114238169A CN 202111413550 A CN202111413550 A CN 202111413550A CN 114238169 A CN114238169 A CN 114238169A
Authority
CN
China
Prior art keywords
data
cache
required data
cache region
validity period
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
CN202111413550.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.)
Zhuomi Private Ltd
Original Assignee
Zhuomi Private 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 Zhuomi Private Ltd filed Critical Zhuomi Private Ltd
Priority to CN202111413550.2A priority Critical patent/CN114238169A/en
Publication of CN114238169A publication Critical patent/CN114238169A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0877Cache access modes
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/278Data partitioning, e.g. horizontal or vertical partitioning

Landscapes

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

Abstract

The application relates to a data caching method and device, and relates to the technical field of computer application. Wherein, the method comprises the following steps: responding to an operation instruction of a user to a service system, and determining required data corresponding to the operation instruction; determining the data type of the required data; and processing the cache data in the cache region according to the required data and the data type thereof, and updating the validity period of the processed cache data in the cache region. According to the method and the device, the cache technology is effectively utilized to improve the system performance, the pressure of database operation is reduced, the problem of data consistency is solved, the cache utilization rate is improved by distinguishing the cache types, and the system stability and robustness can be enhanced.

Description

Data caching method and device
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a data caching method and apparatus.
Background
Cache is an indispensable module in the present system and has become a key component of a high-concurrency, high-performance architecture. The cache can avoid repeated creation, processing and transmission of data, and can effectively improve the performance.
However, while alleviating database pressure and improving performance, there is also a problem of data consistency.
Disclosure of Invention
The application provides a data caching method and device.
According to a first aspect of the present application, there is provided a data caching method, including:
responding to an operation instruction of a user to a service system, and determining required data corresponding to the operation instruction;
determining the data type of the required data;
and processing the cache data in the cache region according to the required data and the data type thereof, and updating the validity period of the processed cache data in the cache region.
In some embodiments of the present application, the processing the cache data in the cache region according to the required data and the data type thereof, and updating the validity period of the processed cache data in the cache region includes:
judging whether cache data corresponding to the required data exists in the cache region;
responding to the cache data corresponding to the required data not existing in the cache region, and acquiring the required data from a database;
caching the required data into the cache region according to the data type, and enabling the required data to serve as newly-built cache data in the cache region;
and setting the validity period of the newly-built cache data in the cache region.
In some embodiments of the present application, the processing the cache data in the cache region according to the required data and the data type thereof, and updating the validity period of the processed cache data in the cache region includes:
writing the required data into a database;
caching the required data into the cache region according to the type of the required data, and enabling the required data to serve as newly-built cache data in the cache region;
and setting the validity period of the newly-built cache data in the cache region.
In some embodiments of the present application, the processing the cache data in the cache region according to the required data and the data type thereof, and updating the validity period of the processed cache data in the cache region includes:
performing content modification on the desired data within the database;
according to the data type of the required data, modifying cache data corresponding to the required data in the cache region;
and updating the validity period of the modified cache data.
In some embodiments of the present application, the method further comprises:
judging whether cache data exceeding the validity period exist in the cache region or not;
and in response to the cache data exceeding the validity period existing in the cache region, deleting the cache data exceeding the validity period from the cache region.
In some embodiments of the present application, the processing the cache data in the cache region according to the required data and the data type thereof, and updating the validity period of the processed cache data in the cache region includes:
deleting the required data in a database corresponding to the service system;
and deleting the cache data corresponding to the deleted required data in the cache region according to the deleted required data.
In some embodiments of the present application, the method further comprises:
determining target cache data in an operation failure state in the cache region;
putting the target cache data into a retry deletion cache queue;
and continuously trying to delete the target cache data in the retry deletion cache queue until the target cache data is deleted completely.
According to a second aspect of the present application, there is provided a data caching apparatus comprising:
the determining module is used for responding to an operating instruction of a user to the service system and determining required data corresponding to the operating instruction;
the first judgment module is used for determining the data type of the required data;
and the processing module is used for processing the cache data in the cache region according to the required data and the data type thereof and updating the validity period of the processed cache data in the cache region.
In some embodiments of the present application, the operation instruction is a first operation instruction, and the processing module includes:
a first judging unit, configured to judge whether cache data corresponding to the required data exists in the cache region;
the obtaining unit is used for responding to the situation that cache data corresponding to the required data does not exist in the cache region, and obtaining the required data from a database;
the first new building unit is used for caching the required data into the cache region according to the data type, and enabling the required data to be used as new cache data in the cache region;
and the first setting unit is used for setting the validity period of the newly-built cache data in the cache region.
In some embodiments of the present application, the operation instruction is a second operation instruction, and the processing module includes:
the writing unit is used for writing the required data into a database;
the second new building unit is used for caching the required data into the cache region according to the type of the required data, and enabling the required data to serve as new cache data in the cache region;
and the second setting unit is used for setting the validity period of the newly-built cache data in the cache region.
In some embodiments of the present application, the operation instruction is a third operation instruction, and the processing module includes:
a first modification unit, configured to perform content modification on the required data in the database;
the second modification unit is used for modifying the cache data corresponding to the required data in the cache region according to the data type of the required data;
and the updating unit is used for updating the validity period of the modified cache data.
In some embodiments of the present application, the processing module is further configured to:
judging whether cache data exceeding the validity period exist in the cache region or not;
and in response to the cache data exceeding the validity period existing in the cache region, deleting the cache data exceeding the validity period from the cache region.
In some embodiments of the present application, the operation instruction is a fourth operation instruction, and the processing module includes:
a second deleting unit, configured to delete data of the required data in the database corresponding to the service system;
and the third deleting unit is used for deleting the cache data corresponding to the deleted required data in the cache region according to the deleted required data.
In some embodiments of the present application, further comprising:
the second judgment module is used for determining target cache data in an operation failure state in the cache region;
and the retry module is used for responding to the target cache data being placed in the retry deletion cache queue, and continuously performing the retry deletion operation on the target cache data in the retry deletion cache queue until the target cache data is deleted completely.
According to a third aspect of embodiments of the present application, there is provided an electronic apparatus, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein:
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect as hereinbefore described.
According to a fourth aspect of embodiments herein, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of the foregoing first aspect.
According to a fifth aspect of the present application, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect described above.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
by dividing the data types of the required data, the data according to different types are cached and processed in different areas, the cache utilization rate can be improved, the purpose of automatic caching is realized, the cache technology can be effectively utilized to improve the system performance, the database operation pressure is reduced, and the database operation stability is ensured. In addition, the cache data in the cache region is processed, the validity period is set for the cache data, the validity period can be updated after the cache data are processed every time, and if the cache data exceed the validity period, the cache data can be automatically deleted, so that the problem of data consistency is solved, and the processing performance of the system is further improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a flowchart of a data caching method according to an embodiment of the present application;
fig. 2 is a flowchart of another data caching method according to an embodiment of the present application;
fig. 3 is a flowchart of another data caching method according to an embodiment of the present application;
fig. 4 is a flowchart of another data caching method according to an embodiment of the present application;
fig. 5 is a flowchart of another data caching method according to an embodiment of the present application;
fig. 6 is a block diagram of a data caching apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of another data caching apparatus according to an embodiment of the present disclosure;
fig. 8 is a block diagram of a structure of another data caching apparatus according to an embodiment of the present application;
fig. 9 is a block diagram of another data caching apparatus according to an embodiment of the present application;
fig. 10 is a block diagram of another data caching apparatus according to an embodiment of the present application;
fig. 11 is a block diagram of another data caching apparatus according to an embodiment of the present application;
fig. 12 is a block diagram of an electronic device for a data caching method according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that, in order to reduce the pressure on the database, a cache technique is required to improve the performance. The processing performance and stability of the database are improved by using the caching technology, but the problem of data consistency is also brought.
The data consistency problem refers to that when multiple users attempt to access a database at the same time and their transactions use the same data at the same time, the following four situations may occur: missing updates, undetermined dependencies, inconsistent analysis, and phantom reads.
In order to solve the problem of data consistency, the present application discloses a data caching method, which distinguishes data types of required data and processes cached data in a cache region according to the data types of the required data, and the data caching method according to the embodiment of the present application is described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a data caching method according to an embodiment of the present application, and as shown in fig. 1, the data caching method includes the following steps:
step 101, responding to an operation instruction of a user to a service system, and determining required data corresponding to the operation instruction.
It should be noted that, in the embodiment of the present application, the required data may be acquired from a data database or a cache region; and when the cache data corresponding to the required data does not exist in the cache region, acquiring the required data from the database. And when the cache data corresponding to the required data exists in the cache region, acquiring the required data from the cache region.
As an example, when the user a wishes to check the voting data of a certain game, and in response to an operation instruction of the user a to the service system, it is determined whether the cache data corresponding to the required data exists in the cache area, and if the data in the cache area is empty at this time, the number of votes is read from the database as 5.
As an example, when a user a wishes to check voting data of a certain match, and in response to an operation instruction of the user a to the service system, whether cache data corresponding to required data exists in the cache region is determined, and at this time, cache data corresponding to the required data exists in the cache region, the number of votes is read from the cache region to be 5.
At step 102, the data type of the desired data is determined.
It should be noted that the data type of the required data may include, but is not limited to, one or more of number type, string type, map type, and the like.
Alternatively, the number type of required data may be mathematically operated, for example, the required data is: and 5, adding 1 ticket to the required data, and changing the obtained required data into: and 6, the number of the tickets, wherein the required data is number type data.
string type modification can be performed on string type required data, for example, the required data is: monday is a sunny day, the required data can be modified, the sunny day is modified into a cloudy day, and the required data is obtained: monday is a cloudy day, where the required data is string type data.
The map type required data can be modified according to a key-value (according to a keyword value), for example, the required data is the content of an article, the basic information of the article is a key-value structure, and the key-value structure of the article can be modified. Wherein the required data is of the map type.
Step 103, processing the cache data in the cache region according to the required data and the data type thereof, and updating the validity period of the cache data processed in the cache region.
It should be noted that, in the embodiment of the present application, the processing includes creating cache data, modifying cache data, and deleting cache data, where creating cache data refers to creating non-existing cache data in a cache area, and the triggering condition of creating cache data includes: (1) after the required data are read from the database, newly building cache data corresponding to the required data in a cache area; (2) when the required data is written into the database and cached in the cache region, it should be noted that the triggering can be performed when one of the triggering condition (1) and the triggering condition (2) is satisfied.
In the embodiment of the application, modifying the cache data refers to modifying existing cache data, the trigger condition for modifying the cache data is to modify required data in the database, and the modified cache data is used as newly-built cache data in the cache region.
In an embodiment of the present application, deleting cache data refers to deleting cache data already existing in a cache region, and the trigger condition for deleting cache data includes: (1) and automatically deleting the cache data existing in the cache region after the validity period is exceeded. (2) And when the required data in the database is deleted, automatically deleting the cache data corresponding to the required data in the cache region.
According to the data caching method, the data types of the required data are divided, so that the data in different types are cached and processed in different areas, the cache utilization rate can be improved, the purpose of automatic caching is achieved, the cache technology can be effectively utilized to improve the system performance, the database operation pressure is reduced, and the database operation stability is ensured. In addition, the cache data in the cache region is processed, the validity period is set for the cache data, the validity period can be updated after the cache data are processed every time, and if the cache data exceed the validity period, the cache data can be automatically deleted, so that the problem of data consistency is solved, and the processing performance of the system is further improved.
It should be noted that, when the operation instruction is a first operation instruction, the first operation instruction may be a read data operation instruction. If the cache data can not be obtained from the cache region, the required data can be obtained from the database. As shown in fig. 2, fig. 2 is a flowchart of another data caching method according to an embodiment of the present application, where the method includes the following steps:
step 201, responding to an operation instruction of a user to a service system, and determining required data corresponding to the operation instruction.
In the embodiment of the present application, step 201 may be implemented by using any one of the embodiments of the present application, which is not limited in this embodiment and is not described again.
At step 202, the data type of the desired data is determined.
In the embodiment of the present application, step 202 may be implemented by any one of the embodiments of the present application, which is not limited in this embodiment and is not described again.
Step 203, determine whether there is cache data corresponding to the required data in the cache region.
In the embodiment of the application, as an implementation manner, the cache data in the cache region is divided into data types in advance, the cache data is stored in the cache region in a divided manner, and when it is determined whether the cache data corresponding to the required data exists in the cache region, the cache data in the corresponding region can be searched according to the type of the required data.
As an example, according to an operation instruction of the user a, it is necessary to determine whether cache data corresponding to the required data B exists in the cache region, and first determine that the required data B is number-type data, and then search from a number-type cache data region in the cache region.
In the embodiment of the application, as an implementation manner, tagging is performed on cache data in a cache region in advance, when it is determined whether cache data corresponding to required data exists in the cache region, a keyword of the required data is extracted, the keyword of the required data is compared with a tag of the cache data according to the keyword of the required data, several similar cache data are selected, and then the several similar cache data are compared with the required data to determine which cache data corresponds to the required data.
As an example, according to an operation instruction of the user a, it is necessary to determine whether cache data corresponding to the required data B exists in the cache region, and tag processing is performed on the cache data in the cache region in advance, where the cache region includes three cache data, and tags of the three cache data are "× article content", "football game ticket number", and "basketball game ticket number", respectively, and it can be known that a keyword of the required data B is "ticket number" by extracting the keyword of the required data B. The cache data which are relatively similar in the cache area are cache data with the labels of football game ticket number and basketball game ticket number, and the required data and the cache data are further compared to obtain the cache data with the label of basketball game ticket number which is the cache data corresponding to the required data.
And step 204, in response to that the cache data corresponding to the required data does not exist in the cache region, acquiring the required data from the database.
For example, suppose the database is provided with a user data acquisition interface, the user requirement can be determined through the interface, and the corresponding required data is searched from the database according to the user requirement. It should be noted that the form of the user's request may be a voice form or a text form. When the user needs to be in a voice form, voice recognition can be performed on the voice input by the user, and the voice can be converted into corresponding text information.
In the embodiment of the application, in response to the cache data corresponding to the required data existing in the cache region, the cache data corresponding to the required data is directly read from the cache region, and the cache data is returned to the service system.
Step 205, caching the required data into the cache region according to the data type, and using the required data as newly-built cache data in the cache region.
As an example, when the user a wishes to view the voting data of a certain game, at this time, the cache data corresponding to the required data does not exist in the cache region, so that the number of votes extracted from the database is 5, the 'number of votes 5' is the required data, and the required data is number type data, and the required data is cached in the cache region as newly created cache data.
As another example, when the user a wishes to view the information of the article B, at this time, the cache data of the article B does not exist in the cache region, so the content of the article B is extracted from the database, "this is a test article content", and "this is a test article content", which is the required data, and the required data is map-type data, and the required data is cached in the cache region as newly-created cache data, it is determined that the article basic information is a key-value structure, so the cache uses map-type storage, and the key is article _ info _1, and the key-value is article id:1234, author (author): three, title: (title), test title, createtime (generation time): 2021-01-01.
And step 206, setting the validity period of the newly-built cache data in the cache region.
In order to improve performance and further enhance stability and robustness of the cache system, in some embodiments of the present application, it may be determined whether cache data exceeding a validity period exists in a cache region; and in response to the cache data exceeding the validity period existing in the cache region, deleting the cache data exceeding the validity period from the cache region.
As an example, at this time, three cache data exist in the cache region, wherein the validity period of the cache data a is five minutes, and the remaining time is three minutes; the validity period of the cache data B is six minutes, and the remaining time is two minutes; the validity period of the cache data C is five minutes, and the remaining time is zero; if the validity period of the cache data C in the cache region is determined to have exceeded, the cache data C is deleted from the cache region.
As an example, when the user a wishes to view the voting data of a certain game, at this time, the cache data corresponding to the required data does not exist in the cache region, so that the number of votes extracted from the database is 5, the 'number of votes is 5' is taken as the required data, and the required data is number type data, and the required data is cached in the cache region as newly created cache data. At this time, an effective period is set for the newly-built cache data, and the effective period is ten minutes.
As another example, when the user a wishes to view the information of the article B, at this time, the cache data of the article B does not exist in the cache region, so the content of the article B is extracted from the database, "this is a test article content", and "this is a test article content", which is the required data, and the required data is map-type data, and the required data is cached in the cache region as newly-created cache data, it is determined that the article basic information is a key-value structure, so the cache uses map-type storage, and the key is article _ info _1, and key-value is article id:1234, author (author): zhang, title: (title), test title, createtime (generation time): 2021-01-01, and validity period is 5 minutes.
It should be noted that, in the embodiment of the present application, when the cached data is within the validity period, the user may perform processing operation on the cached data according to the need of the user, and if the cached data exceeds the validity period, the user has no way to perform processing operation on the cached data, where the processing operation includes operations such as access and modification.
According to the data caching method, when cache data corresponding to the required data does not exist in the cache region, the required data is obtained from the database, the user can obtain the required data timely, the required data is used as newly-built cache data in the cache region, the newly-built cache data can be obtained when the cache region does not have the cache data, the problem of data consistency is solved in sequence, and support for obtaining the required data by subsequent users is provided.
It should be noted that, when the operation instruction is a second operation instruction, the second operation instruction is to write data into the database. When data writing operation is carried out on the database, the input result can be cached. As shown in fig. 3, fig. 3 is a flowchart of another data caching method according to an embodiment of the present application, where the method includes the following steps:
step 301, responding to an operation instruction of a user to a service system, determining required data corresponding to the operation instruction.
In the embodiment of the present application, step 301 may be implemented by using any one of the embodiments of the present application, which is not limited in this embodiment and is not described again.
Step 302, determining the data type of the required data.
In the embodiment of the present application, step 302 may be implemented by using any one of the embodiments of the present application, which is not limited in this embodiment and is not described again.
Step 303, write the required data into the database.
For example, it is assumed that the data caching method of the embodiment of the present application can provide a data input interface for a user, and a database can obtain required data input by the user through the interface. It should be noted that the form of the required data input by the user may be a voice form or a text form, and when the required data input by the user is a voice form, the required data in the voice form may be subjected to voice recognition first and converted into corresponding text information.
And step 304, caching the required data into the cache region according to the type of the required data, and enabling the required data to be used as newly-built cache data in the cache region.
As an example, after the user a writes data with the content of "ticket number 5" into the database, it is determined that the data with "ticket number 5" is number type data, and the data with "ticket number 5" is used as newly created cache data in the cache area.
As another example, after the user a writes data with content "this is a test article content. - > into the database, it is determined that the data is map type data, and the data" this is a test article content. - > is used as new cache data in the cache region, and when the new article basic information is cached, it is determined that the data basic information is a key-value structure, so the cache uses map type storage, key is angle _ info _1, key-value is angle id:1234, author: zhang, title: test article title, createtime: 2021-01-01.
And 305, setting the validity period of the newly-built cache data in the cache area.
As an example, after the user a writes data with the content of "ticket number 5" into the database, it is determined that the data with "ticket number 5" is number type data, and the data with "ticket number 5" is used as newly created cache data in the cache area. At this time, an effective period is set for the newly-built cache data, and the effective period is ten minutes.
As another example, after the user a writes data with content "this is a test article content. - > into the database, it is determined that the data is map type data, and the data" this is a test article content. - > is used as new cache data in the cache region, and when the new cache data is cached, it is determined that the data basic information is a key-value structure, so the cache uses map type storage, key is angle _ info _1, key-value is articlelld: 1234, author: zhang, title: test article title, createtime:2021-01-01, and the validity period is five minutes.
It should be noted that, when the cached data is within the validity period, the user may perform processing operation on the cached data according to the need of the user, and if the cached data exceeds the validity period, the user has no way to perform processing operation on the cached data, where the processing operation includes operations such as access and modification.
According to the data caching method, the required data written into the database are used as newly-built cache data in the cache region, updating operation of the cache data is achieved, the problem of data consistency is solved, the required data are cached according to the type of the required data, classified type management of the cache region is achieved, pressure of the database is reduced, and performance of the database is improved.
It should be noted that, when the operation instruction is a third operation instruction, the third operation instruction is to modify the required data in the database. When the required data in the database is modified, the modified result is also subjected to caching operation. As shown in fig. 4, fig. 4 is a flowchart of another data caching method provided in the embodiment of the present application, where the method includes the following steps:
step 401, in response to an operation instruction of a user to a service system, determining required data corresponding to the operation instruction.
In the embodiment of the present application, step 401 may be implemented by using any one of the embodiments of the present application, which is not limited in this embodiment and is not described again.
Step 402, determining the data type of the required data.
In the embodiment of the present application, step 402 may be implemented by using any one of the embodiments of the present application, which is not limited in this embodiment and is not described again.
At step 403, content modification is performed on the required data in the database.
And step 404, modifying the cache data corresponding to the required data in the cache region according to the data type of the required data.
It should be noted that, in some embodiments of the present application, if the data type of the cache data is a number type, the mathematical operation may be performed on the cache data of the number type of cache data, and the modification operation on the cache data is implemented according to the mathematical operation.
In some embodiments of the present application, if the data type of the cached data is string type, the string type modification operation may be performed on the string type cached data.
In some embodiments of the present application, if the data type of the cache data is a map type, the key of the cache data of the map type may be updated, so as to implement the modification operation on the cache data.
As an example, after the user a writes data with a content of "ticket number 5" into the database, another user B adds a vote after viewing the data, and determines that the data with the content of "ticket number 5" is number type data, so that the data with the content of "ticket number 5" is changed into data with a content of "ticket number 6", and the cache data corresponding to the data with the content of "ticket number 5" in the cache area is found and modified, and the content corresponding to the cache data is modified into "ticket number 6".
As another example, after the user a writes data with content "this is a test article content. - > into the database, another user B modifies the data with content" this is a test article content. - > after viewing the data, and may determine that the data type is a map type, and modify the cache data with content "this is a test article content. - > in the cache region" this is a test article content. - > according to the data type of the data with content "this is a test article content. -" this is a cache data corresponding to the data.
Step 405, updating the validity period of the modified cache data.
As an example, after the user a writes data with a content of "ticket number 5" into the database, another user B adds a vote after viewing the data, and determines that the data with the content of "ticket number 5" is number type data, so that the data with the content of "ticket number 5" is changed into data with a content of "ticket number 6", and the cache data corresponding to the data with the content of "ticket number 5" in the cache area is found and modified, and the content corresponding to the cache data is modified into "ticket number 6". The modified cache data is again saved in the cache area, and the validity period is updated to five minutes again.
As another example, after the user a writes data with content "this is a test article content. - > to the database, another user B modifies the data with content" this is a test article content. - > after viewing the data, and may determine that the data type is a map type, modify the cache data with content "this is a test article content. - > in the cache region" this is a test article content. - > according to the data type of the data with content "this is a test article content. -" and store the modified cache data in the cache region again, and update the validity period again to ten minutes.
It should be noted that, when the cached data is within the validity period, the user may perform processing operation on the cached data according to the need of the user, and if the cached data exceeds the validity period, the user has no way to perform processing operation on the cached data, where the processing operation includes operations such as access and modification.
According to the data caching method, the required data are modified according to the data type of the required data, the operation pressure of the database is reduced, the performance of the database is improved, the stability of the database is improved, the cache data corresponding to the required data in the cache area are modified correspondingly after the required data are modified, and the problem of data consistency is solved.
It should be noted that, when the operation instruction is a fourth operation instruction, the fourth operation instruction is to delete the required data in the database, and delete the cache data corresponding to the required data. As shown in fig. 5, fig. 5 is a flowchart of another data caching method according to an embodiment of the present application, where the method includes the following steps:
step 501, responding to an operation instruction of a user to a service system, and determining required data corresponding to the operation instruction.
In the embodiments of the present application, step 501 may be implemented by any one of the embodiments of the present application, which is not limited in this embodiment and is not described in detail herein
Step 502, determining the data type of the required data.
In the embodiment of the present application, step 502 may be implemented by any one of the embodiments of the present application, which is not limited in this embodiment and is not described again.
Step 503, delete the data needed in the database corresponding to the business system.
And step 504, according to the deleted required data, deleting the cache data corresponding to the deleted required data in the cache region.
As an example, when the user a performs a deletion operation on the data of "the number of votes is 5" in the database, it is determined that the data of "the number of votes is 5" is the number type data, and the cache data corresponding to the data of "the number of votes is 5" in the cache area is also deleted.
As an example, when the user a deletes the data of which the content is "this is a test article content. - > even" in the database, and it is determined that the data of which the content is "this is a test article content. - > is map type data, the cache data corresponding to the data of which the content is" this is a test article content. - > also is deleted.
According to the data caching method, when the required data in the database is deleted, the cache data corresponding to the cache region is actively deleted, so that the cleaning operation of invalid cache data in the cache region is guaranteed, the operating pressure of the database is reduced, the operating performance of the database is improved, and excessive cache data are prevented from being stored in the cache region.
To further enhance data consistency, a retry mechanism may be added. In some embodiments of the present application, target cache data in an operation failure state in a cache region may be determined, the target cache data is placed in a retry deletion cache queue, and a continuous retry deletion operation is performed on the target cache data in the retry deletion cache queue until the target cache data is completely deleted.
It should be noted that, in the embodiment of the present application, the operation failure may include: modification failure and deletion failure. If the cache data has any one of modification failure and deletion failure, the cache data is put into a retry deletion cache queue.
In the embodiment of the application, if the operation is a modification operation, the modification operation is performed on the cache data, if the result obtained by the modification is the modified cache data, the processing operation is proved to be successful, and if the result obtained by the modification is not the modified cache data, the processing operation is proved to be failed; if the processing operation is a delete operation, the delete operation is performed on the cache data, if the delete result is that the cache region does not have the cache data, the processing operation is proved to be successful, and if the delete result is that the cache region still has the cache data, the processing operation is proved to be failed. The buffered data can be put into a retry deletion buffer queue at this time, so as to perform continuous retry attempt deletion on the buffered data.
As an example, when a user needs to delete "ticket number 5" of the cached data, and finds that the "ticket number 5" of the cached data cannot be deleted, the "ticket number 5" of the cached data is put into a retry deletion cache queue, and the "ticket number 5" of the cached data is continuously tried to be deleted in the retry deletion cache queue, and then after a plurality of attempts, the "ticket number 5" of the cached data is deleted.
As an example, when a user needs to perform a modification operation on the cache data "which is a piece of test article content. -. no way to be modified," the cache data "which is a piece of test article content. -. no way to be modified is found, and finally the cache data" which is a piece of test article content. -. is put into a retry deletion cache queue, and the cache data "which is a piece of test article content. -. the" is continuously tried to be deleted after the retry deletion cache queue is retried, and then the cache data "which is a piece of test article content. -. is deleted after a plurality of attempts.
Therefore, the embodiment of the application can further enhance the data consistency by adding the retry mechanism.
In order to implement the above embodiments, the present application further provides a data caching apparatus.
Fig. 6 is a block diagram of a data caching apparatus according to an embodiment of the present application. As shown in fig. 6, the data caching apparatus may include: a determination module 610, a determination module 620, and a processing module 630.
The determining module 610 is configured to respond to an operation instruction of a user to the service system, and determine required data corresponding to the operation instruction;
a determining module 620, configured to determine a data type of the required data;
the processing module 630 is configured to process the cache data in the cache region according to the required data and the data type thereof, and update the validity period of the cache data processed in the cache region.
According to the data caching device provided by the embodiment of the application, the data types of the required data are divided, so that the data in different types are cached and processed in different areas, the cache utilization rate can be improved, the purpose of automatic caching is realized, the cache technology can be effectively utilized to improve the system performance, the database operation pressure is reduced, and the database operation stability is ensured. In addition, the cache data in the cache region is processed, the validity period is set for the cache data, the validity period can be updated after the cache data are processed every time, and if the cache data exceed the validity period, the cache data can be automatically deleted, so that the problem of data consistency is solved, and the processing performance of the system is further improved.
In some embodiments of the present disclosure, as shown in fig. 7, fig. 7 is a block diagram of another data caching apparatus provided in the embodiments of the present disclosure, and as shown in fig. 7, when the operation instruction is a first operation instruction, the processing module 730 in the data caching apparatus may include: a first judgment unit 731, an acquisition unit 732, a first reconstruction unit 733, and a first setup unit 734.
A first determining unit 731, configured to determine whether there is cache data corresponding to the required data in the cache region;
an obtaining unit 732, configured to obtain the required data from the database in response to that cache data corresponding to the required data does not exist in the cache region;
the first creating unit 733, configured to cache the required data into the cache region according to the data type, and make the required data as new cache data in the cache region;
the first setting unit 734 is configured to set a validity period of the newly created cache data in the cache area.
In some embodiments of the present application, the processing module 730 is further configured to: judging whether cache data exceeding the validity period exist in the cache region or not; and in response to the cache data exceeding the validity period existing in the cache region, deleting the cache data exceeding the validity period from the cache region.
As an example, at this time, three cache data exist in the cache region, wherein the validity period of the cache data a is five minutes, and the remaining time is three minutes; the validity period of the cache data B is six minutes, and the remaining time is two minutes; the validity period of the cache data C is five minutes, and the remaining time is zero; if the validity period of the cache data C in the cache region is determined to have exceeded, the cache data C is deleted from the cache region.
Wherein, 710 and 720 in fig. 7 and 610 and 620 in fig. 6 have the same functions and structures.
According to the data caching device, when cache data corresponding to the required data does not exist in the cache region, the required data are obtained from the database, the user can obtain the required data timely, the required data are used as new cache data in the cache region, the new establishment of the cache data can be realized when the cache region does not have the cache data, the problem of data consistency is solved in sequence, and the support of cache data is provided for the follow-up user to obtain the required data.
In some embodiments of the present disclosure, as shown in fig. 8, fig. 8 is a block diagram of another data caching apparatus provided in the embodiments of the present disclosure, and as shown in fig. 8, when the operation instruction is a second operation instruction, the processing module 830 in the data caching apparatus may include: a writing unit 831, a second new-build unit 832, and a second setup unit 833.
The writing unit 831 is configured to write the required data into the database;
a second new creating unit 832, configured to cache the required data into the cache region according to the type of the required data, and enable the required data to be used as new cache data in the cache region;
a second setting unit 833, configured to set a validity period of the newly created cache data in the cache region. Wherein 810-820 in FIG. 8 and 710-720 in FIG. 7 have the same functions and structures.
According to the data caching device, the required data written into the database are used as newly-built cache data in the cache region, updating operation of the cache data is achieved, the problem of data consistency is solved, the required data are cached according to the type of the required data, classified management of the cache region is achieved, pressure of the database is reduced, and performance of the database is improved.
In some embodiments of the present disclosure, as shown in fig. 9, fig. 9 is a block diagram of another data caching apparatus provided in the embodiments of the present disclosure, and as shown in fig. 9, when the operation instruction is a third operation instruction, the processing module 930 in the data caching apparatus may include: a first modification unit 931, a second modification unit 932, and an update unit 933.
The first modifying unit 931 is configured to modify content of the required data in the database;
a second modifying unit 932, configured to modify, according to a data type of the required data, cache data corresponding to the required data in the cache region;
an updating unit 933, configured to update the validity period of the modified cache data. Wherein 910-920 in FIG. 9 and 810-820 in FIG. 8 have the same functions and structures.
According to the data caching device, the required data are modified according to the data types of the required data, the operation pressure of the database is reduced, the performance of the database is improved, the stability of the database is improved, the corresponding caching data of the required data in the caching area are modified correspondingly after the required data are modified, and the problem of data consistency is solved.
In some embodiments of the present disclosure, as shown in fig. 10, fig. 10 is a block diagram of another data caching apparatus provided in the embodiments of the present disclosure, and as shown in fig. 10, when the operation instruction is a fourth operation instruction, the processing module 1030 in the data caching apparatus may include: a second deletion unit 1031 and a third deletion unit 1032.
The second deleting unit 1031 is configured to delete data required in the database corresponding to the business system;
a third deleting unit 1032 is configured to delete the cache data corresponding to the deleted required data in the cache region according to the deleted required data. Wherein, 1010-1020 in FIG. 10 and 910-920 in FIG. 9 have the same functions and structures.
According to the data caching device provided by the embodiment of the application, when the required data in the database is deleted, the cache data corresponding to the cache region is actively deleted, so that the cleaning operation of invalid cache data in the cache region is ensured, the operating pressure of the database is reduced, the operating performance of the database is improved, and the excessive cache data stored in the cache region is prevented.
In some embodiments disclosed in the present application, as shown in fig. 11, fig. 11 is a block diagram of another structure of a data caching device provided in the embodiments of the present application, and as shown in fig. 11, the data caching device further includes: a second decision module 1140 and a retry module 1150.
The second determining module 1140 is configured to determine target cache data in the cache region in the operation failure state.
The retry module 1150 is configured to put the target cache data into the retry deletion buffer queue, and perform a continuous retry deletion operation on the target cache data in the retry deletion buffer queue until the target cache data is deleted completely.
Wherein 1110 and 1130 in fig. 11 and 1010 and 1030 in fig. 10 have the same functions and structures.
According to the data caching device, the cache data which fails to be processed are placed in the retry deletion cache queue, the deletion operation of the cache data which fails to be processed is effectively achieved, the cleaning operation of useless cache data in the cache region is further increased, the pressure of a database is further reduced, and the problem of data consistency is further solved by continuously deleting the cache data which fails to be processed.
It should be noted that, in the present application, the various embodiments may be fused with each other, wherein the combination form may include but is not limited to: two examples were fused to each other, or, alternatively, three examples were fused to each other.
As an example, fig. 7 and fig. 8 are fused, the processing module may include: the device comprises a first judging unit, an obtaining unit, a first newly-built unit, a first setting unit, a writing unit, a second newly-built unit and a second setting unit.
As an example, fig. 7, 8 and 9 are fused, the processing module may include: the device comprises a first judging unit, an obtaining unit, a first newly-built unit, a first setting unit, a writing unit, a second newly-built unit, a second setting unit, a first modifying unit, a second modifying unit and an updating unit.
Fig. 12 is a block diagram of an electronic device for a data caching method according to an embodiment of the present application. For example, the electronic device 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 12 is a block diagram of an electronic device for implementing a data caching method according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 12, the electronic apparatus includes: one or more processors 1201, memory 1202, and interfaces for connecting the various components, including a high speed interface and a low speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Fig. 12 illustrates an example of one processor 1201.
Memory 1202 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by the at least one processor, so that the at least one processor executes the data caching method provided by the application. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method of data caching provided herein.
The memory 1202, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the determining module 810, the determining module 820, and the processing module 830 shown in fig. 8) corresponding to the data caching method in the embodiments of the present application. The processor 1201 executes various functional applications of the server and data processing by executing non-transitory software programs, instructions, and modules stored in the memory 1202, that is, implements the data caching method in the above method embodiment.
The memory 1202 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device for the data caching method, and the like. Further, the memory 1202 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 1202 may optionally include memory located remotely from the processor 1201, which may be connected to a data-caching electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device for the data caching method may further include: an input device 1203 and an output device 1204. The processor 1201, the memory 1202, the input device 1203, and the output device 1204 may be connected by a bus or other means, and the bus connection is exemplified in fig. 12.
The input device 1203 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device of the data caching method, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or other input devices. The output devices 1204 may include a display device, auxiliary lighting devices (e.g., LEDs), tactile feedback devices (e.g., vibrating motors), and the like. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), the internet, and blockchain networks.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
According to the technical scheme of the embodiment of the application, the data types of the required data are divided, so that the data in different types are cached and processed in different areas, the cache utilization rate can be improved, the purpose of automatic caching is realized, the cache technology can be effectively utilized to improve the system performance, the database operation pressure is reduced, and the database operation stability is ensured. In addition, the cache data in the cache region is processed, the validity period is set for the cache data, the validity period can be updated after the cache data are processed every time, and if the cache data exceed the validity period, the cache data can be automatically deleted, so that the problem of data consistency is solved, and the processing performance of the system is further improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method of caching data, comprising:
responding to an operation instruction of a user to a service system, and determining required data corresponding to the operation instruction;
determining the data type of the required data;
and processing the cache data in the cache region according to the required data and the data type thereof, and updating the validity period of the processed cache data in the cache region.
2. The method according to claim 1, wherein the operation instruction is a first operation instruction, and the processing the cache data in the cache region according to the required data and the data type thereof and updating the validity period of the processed cache data in the cache region comprises:
judging whether cache data corresponding to the required data exists in the cache region;
responding to the cache data corresponding to the required data not existing in the cache region, and acquiring the required data from a database;
caching the required data into the cache region according to the data type, and enabling the required data to serve as newly-built cache data in the cache region;
and setting the validity period of the newly-built cache data in the cache region.
3. The method according to claim 1, wherein the operation instruction is a second operation instruction, and the processing the cache data in the cache region according to the required data and the data type thereof and updating the validity period of the processed cache data in the cache region comprises:
writing the required data into a database;
caching the required data into the cache region according to the type of the required data, and enabling the required data to serve as newly-built cache data in the cache region;
and setting the validity period of the newly-built cache data in the cache region.
4. The method according to claim 1, wherein the operation instruction is a third operation instruction, and the processing the cache data in the cache region according to the required data and the data type thereof and updating the validity period of the processed cache data in the cache region comprises:
performing content modification on the desired data within the database;
according to the data type of the required data, modifying cache data corresponding to the required data in the cache region;
and updating the validity period of the modified cache data.
5. The method of claim 1, further comprising:
judging whether cache data exceeding the validity period exist in the cache region or not;
and in response to the cache data exceeding the validity period existing in the cache region, deleting the cache data exceeding the validity period from the cache region.
6. The method according to claim 1, wherein the operation instruction is a fourth operation instruction, and the processing the cache data in the cache region according to the required data and the data type thereof and updating the validity period of the processed cache data in the cache region comprises:
deleting the required data in a database corresponding to the service system;
and deleting the cache data corresponding to the deleted required data in the cache region according to the deleted required data.
7. The method of claim 1, further comprising:
determining target cache data in an operation failure state in the cache region;
putting the target cache data into a retry deletion cache queue;
and continuously trying to delete the target cache data in the retry deletion cache queue until the target cache data is deleted completely.
8. A data caching apparatus, characterized by:
the determining module is used for responding to an operating instruction of a user to the service system and determining required data corresponding to the operating instruction;
the first judgment module is used for determining the data type of the required data;
and the processing module is used for processing the cache data in the cache region according to the required data and the data type thereof and updating the validity period of the processed cache data in the cache region.
9. An electronic device, comprising;
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1 to 7.
CN202111413550.2A 2021-11-25 2021-11-25 Data caching method and device Pending CN114238169A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111413550.2A CN114238169A (en) 2021-11-25 2021-11-25 Data caching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111413550.2A CN114238169A (en) 2021-11-25 2021-11-25 Data caching method and device

Publications (1)

Publication Number Publication Date
CN114238169A true CN114238169A (en) 2022-03-25

Family

ID=80751168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111413550.2A Pending CN114238169A (en) 2021-11-25 2021-11-25 Data caching method and device

Country Status (1)

Country Link
CN (1) CN114238169A (en)

Similar Documents

Publication Publication Date Title
CN110806923A (en) Parallel processing method and device for block chain tasks, electronic equipment and medium
WO2018005400A1 (en) Systems and methods for virtual machine live migration
CN113868251B (en) Global secondary indexing method and device for distributed database
CN112084366A (en) Method, apparatus, device and storage medium for retrieving image
CN111625552B (en) Data collection method, device, equipment and readable storage medium
CN111045985A (en) File storage processing method, server, electronic device and storage medium
US20210209160A1 (en) Method and apparatus for identifying map region words
CN110597797A (en) Table space debris recovery method and device, electronic equipment and storage medium
CN111767321A (en) Node relation network determining method and device, electronic equipment and storage medium
CN111460296B (en) Method and apparatus for updating event sets
CN111259107A (en) Storage method and device of determinant text and electronic equipment
CN112559522A (en) Data storage method and device, query method, electronic device and readable medium
CN112182292A (en) Training method and device for video retrieval model, electronic equipment and storage medium
CN112565356A (en) Data storage method and device and electronic equipment
US20140289229A1 (en) Using content found in online discussion sources to detect problems and corresponding solutions
CN111831752A (en) Distributed database space arrangement method, device, equipment and storage medium
CN111259090A (en) Graph generation method and device of relational data, electronic equipment and storage medium
EP3872704A2 (en) Header model for instance segmentation, instance segmentation model, image segmentation method and apparatus
CN110536283B (en) Terminal identifier acquisition method, device, electronic equipment and medium
CN111782357A (en) Label control method and device, electronic equipment and readable storage medium
CN111738325A (en) Image recognition method, device, equipment and storage medium
CN111832070A (en) Data mask method and device, electronic equipment and storage medium
CN111783644A (en) Detection method, device, equipment and computer storage medium
CN111522863A (en) Topic concept mining method, device, equipment and storage medium
CN111290714A (en) Data reading 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