CN109885786B - Data caching processing method and device, electronic equipment and readable storage medium - Google Patents

Data caching processing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN109885786B
CN109885786B CN201910061979.6A CN201910061979A CN109885786B CN 109885786 B CN109885786 B CN 109885786B CN 201910061979 A CN201910061979 A CN 201910061979A CN 109885786 B CN109885786 B CN 109885786B
Authority
CN
China
Prior art keywords
data
cache
service
target
data table
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.)
Active
Application number
CN201910061979.6A
Other languages
Chinese (zh)
Other versions
CN109885786A (en
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.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201910061979.6A priority Critical patent/CN109885786B/en
Publication of CN109885786A publication Critical patent/CN109885786A/en
Application granted granted Critical
Publication of CN109885786B publication Critical patent/CN109885786B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a data caching processing method, a data caching processing device, electronic equipment and a readable storage medium, wherein the method comprises the following steps: acquiring an identifier of update data in a database and an identifier of a target data table for storing the update data; calling each cache processing submodule according to the identification of the data table of the target data, and judging whether the target data table is a data table corresponding to the cache processing submodule in parallel; if the target data table is a data table corresponding to a first cache processing submodule, calling the first cache processing submodule to determine at least one target service for referring to the updated data according to the identification of the updated data and the identification of the data table; and updating the updating data to a service cache corresponding to the at least one target service. The method can rapidly finish the refreshing of the service cache, thereby greatly improving the refreshing efficiency of the service cache.

Description

Data caching processing method and device, electronic equipment and readable storage medium
Technical Field
Embodiments of the present invention relate to computer technologies, and in particular, to a data caching method and apparatus, an electronic device, and a readable storage medium.
Background
Caching is adopted by more and more internet manufacturers as an important means for dealing with high-concurrency requests. In the caching technology, the data in the database is stored in the cache, so that the Internet system and the like can quickly acquire the required data, and the processing efficiency and the user experience are improved. The service cache is an important type in the caching technology, is a cache taking services as a unit, and can be directly provided for the terminal equipment to use without executing other processing. The service cache often involves coordination among a plurality of nodes in the internet system, and therefore, refreshing of the service cache is particularly important for the internet system.
In the prior art, an independent cache synchronization network element may be used to monitor changes in the database, and then sub-modules for performing service cache update processing are sequentially selected according to the changed data table, so as to refresh corresponding service cache data in the service cache.
However, the method in the prior art may cause the refresh rate of the service cache to be too slow, and the efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a data cache processing method and device, electronic equipment and a readable storage medium, which are used for solving the problems of low business cache refreshing speed and low efficiency in the prior art.
A first aspect of the embodiments of the present invention provides a data cache processing method, where a database includes at least two data tables, and each data table corresponds to one cache processing sub-module, the method includes:
acquiring an identifier of update data in a database and an identifier of a target data table for storing the update data;
calling each cache processing submodule according to the identification of the data table of the target data, and judging whether the target data table is a data table corresponding to the cache processing submodule in parallel;
if the target data table is a data table corresponding to a first cache processing submodule, calling the first cache processing submodule to determine at least one target service for referring to the updated data according to the identification of the updated data and the identification of the data table;
and updating the updating data to a service cache corresponding to the at least one target service.
Further, the updating the update data to the service cache corresponding to the at least one target service includes:
and calling at least one service processing sub-module corresponding to the at least one target service one by one, generating a primary key and a key value to be written according to the updated data, and writing the primary key and the key value to be written into a corresponding service cache.
Further, the method further comprises:
receiving a data acquisition request sent by terminal equipment, wherein the data acquisition request is used for requesting data of the target service;
reading updated data of the target service from a service cache corresponding to the target service according to the data acquisition request;
and sending the updated data of the target service to the terminal equipment.
Further, the method further comprises:
receiving the updating data input by a user;
and updating the updating data into the target data table.
Further, the identification of the update data includes a location of the update data in the target data table.
A second aspect of the embodiments of the present invention provides a data cache processing apparatus, where a database includes at least two data tables, and each data table corresponds to a cache processing sub-module, the apparatus includes:
the acquisition module is used for acquiring an identifier of updated data in a database and an identifier of a target data table for storing the updated data;
the first calling module is used for calling each cache processing sub-module according to the identification of the data table of the target data and judging whether the target data table is the data table corresponding to the cache processing sub-module or not in parallel;
the second calling module is used for calling the first cache processing submodule to determine at least one target service for referring to the updated data according to the identifier of the updated data and the identifier of the data table when the target data table is the data table corresponding to the first cache processing submodule;
and the first updating module is used for updating the updating data to a service cache corresponding to the at least one target service.
Further, the first updating module is specifically configured to:
and calling at least one service processing sub-module corresponding to the at least one target service one by one, generating a primary key and a key value to be written according to the updated data, and writing the primary key and the key value to be written into a corresponding service cache.
Further, the apparatus further comprises:
a receiving module, configured to receive a data acquisition request sent by a terminal device, where the data acquisition request is used to request data of the target service;
a reading module, configured to read updated data of the target service from a service cache corresponding to the target service according to the data obtaining request;
and the sending module is used for sending the updated data of the target service to the terminal equipment.
Further, the receiving module is configured to:
receiving the updating data input by a user;
the device further comprises:
and the second updating module is used for updating the updating data into the target data table.
Further, the identification of the update data includes a location of the update data in the target data table.
A third aspect of embodiments of the present invention provides an electronic device, including:
a memory for storing program instructions;
a processor for calling and executing the program instructions in the memory to perform the method steps of the first aspect.
A fourth aspect of the embodiments of the present invention provides a readable storage medium, in which a computer program is stored, the computer program being configured to execute the method according to the first aspect.
According to the data cache processing method, the data cache processing device, the electronic device and the readable storage medium provided by the embodiment of the invention, after the updated data is obtained, each cache processing submodule is called, the cache processing submodule which should execute the cache updating processing is judged in parallel, after the cache processing submodule is determined, the cache processing submodule determines the target service which quotes the updated data, and then the updated data is updated to the service cache corresponding to the target service. Because the cache processing submodule is determined in a parallel judgment mode, the business cache can be quickly refreshed even under the condition that the number of data tables in the database is large, and the refreshing efficiency of the business cache is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the following briefly introduces the drawings needed to be used in the description of the embodiments or the prior art, and obviously, the drawings in the following description are some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without inventive labor.
Fig. 1 is a diagram illustrating a possible flow of service cache update by a cache synchronization network element;
fig. 2 is an exemplary system architecture diagram of a data caching processing method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a data caching processing method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a data caching processing method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a data caching processing method according to an embodiment of the present invention;
fig. 6 is a block diagram of a data cache processing apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram of a data cache processing apparatus according to an embodiment of the present invention;
fig. 8 is a block diagram of a data cache processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device 900 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but 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.
Fig. 1 is a schematic diagram illustrating a possible flow of service cache update through a cache synchronization network element, and as shown in fig. 1, the cache synchronization network element may include a monitoring module, a service refreshing module, and a cache logic sub-module. The monitoring module is used for monitoring the change of the database, acquiring the table name and the record ID of the changed data table after monitoring the change of the database, and transmitting the table name and the record ID of the data table to the service refreshing module. And the service refreshing module compares the table names with the table names corresponding to all the cache logic sub-modules according to the sequence from small to large of the table names of the data table until the cache logic sub-module consistent with the changed table name is found, and then the cache logic sub-module executes the subsequent process of updating the service cache according to the changed table name and the record ID of the data table.
In the above process, the service refreshing module needs to compare the table names with the table names corresponding to the cache logic sub-modules one by one according to the sequence from small to large of the table names of the data tables, and when the number of the data tables in the database is large, the method may cause the service cache to be too slow in refreshing speed and low in efficiency.
Based on the above problems, embodiments of the present invention provide a data cache processing method, where after update data is obtained, each cache processing submodule is called, a cache processing submodule that should perform cache update processing is judged in parallel, and after the cache processing submodule is determined, the cache processing submodule determines a target service that refers to the update data, and then updates the update data to a service cache corresponding to the target service. Because the cache processing submodule is determined in a parallel judgment mode, the business cache can be quickly refreshed even under the condition that the number of data tables in the database is large, and the refreshing efficiency of the business cache is greatly improved.
As an example, the method provided by the embodiment of the present invention may be applied to an internet system, where the internet system may refer to an internet system that is composed of an Application program (APP) installed on a terminal device and a background management server. Accordingly, fig. 2 is an exemplary system architecture diagram of a data caching method according to an embodiment of the present invention, and as shown in fig. 2, the method may relate to a terminal device and a server. The server is used for creating and maintaining the database and updating the service cache based on the method of the embodiment of the invention. The terminal device is connected with the server. The terminal equipment can request the server for data in the service cache based on the indication of the user, the server sends the service cache data to the terminal equipment according to the request of the terminal equipment, and the terminal displays the service cache data to the user after receiving the service cache data.
It is worth to be noted that the method provided by the embodiment of the present invention may also be applied to other scenarios requiring service caching. For example, in an information management scenario for an enterprise. The embodiment of the present invention is not particularly limited to this.
Fig. 3 is a schematic flow chart of a data caching method according to an embodiment of the present invention, where an execution subject of the method may be an electronic device with processing capability, and for convenience of description, the following description will take the execution subject as the server shown in fig. 1 as an example. As shown in fig. 3, the method includes:
s301, acquiring an identifier of the updated data in the database and an identifier of a target data table for storing the updated data.
The database related to the embodiment of the invention comprises at least two data tables, and each data table corresponds to one cache processing submodule. The corresponding relation between the data table and the cache processing sub-module can be preset.
For the internet system, the above-mentioned database may be used to store various data of the internet system, such as personal information of registered users, information that needs to be presented to the users, and the like, and the presented information may be, for example, commodity information, news information, and the like. The database may be stored in a server, or may also be stored in a separate device, and the server establishes and updates the database by interacting with the device.
Optionally, there is one identifier for each data table in the database. For example, the identifier of the data table may be an ID or a name of the data table, which is not specifically limited in this embodiment of the present invention. Each data table may include a plurality of data therein, and each data may correspond to a record in the data table. When one or more contents in the record are changed, it can be determined that the record is updated, i.e. one or more data in the data table is changed.
In the embodiment of the present invention, the update data may refer to one or more data changed in the data table, and specifically may be one or more records changed in the data table. Where a changed record may refer to an added, modified or deleted record.
Optionally, the identifier of the update data may include a location of the update data in the target data table. Illustratively, the identification of the update data may be the number of a record that has changed, etc.
Alternatively, the database may be monitored for changes by a monitoring module on the server.
S302, calling each cache processing sub-module according to the identification of the data table of the target data, and judging whether the target data table is the data table corresponding to the cache processing sub-module in parallel.
Optionally, the server may call each cache processing sub-module on the server through one service refreshing module at the same time.
For example, the service refreshing module may adopt an observer mode, in which each cache processing sub-module is independent from another, registered as an observer, and operated in an independent thread. When the monitoring module monitors that the data in the database changes, each cache processing sub-module can receive the notification at the same time and is called at the same time.
For each cache processing submodule, after the cache processing submodule is called, whether the changed data table is the data table corresponding to the cache processing submodule can be judged, if yes, the subsequent steps are continuously executed, and if not, the processing is finished.
And S303, if the target data table is a data table corresponding to the first cache processing submodule, calling the first cache processing submodule to determine at least one target service for quoting the updated data according to the identification of the updated data and the identification of the data table.
The first cache processing sub-module is any one of a plurality of cache processing sub-modules corresponding to the plurality of data tables.
In the implementation process, one data in the data table may be referred to by multiple services, and at the same time, one service may refer to multiple data in multiple data tables at the same time. For example, the user name in the registered user information table may be referred to by a "home page" service of the internet system, and may also be referred to by a "user details" service.
Optionally, in this step, after the first cache submodule is called, the first cache submodule may determine, according to a reference relationship between the data and the service, at least one target service that references the updated data. Alternatively, the update data may be determined by interacting with the business processing sub-module to determine which businesses reference the update data. Each service processing submodule is used for processing one service.
S304, updating the updating data to a service cache corresponding to the at least one target service.
In this embodiment, after the update data is acquired, each cache processing sub-module is called, the cache processing sub-modules that should perform cache update processing are judged in parallel, and after the cache processing sub-modules are determined, the cache processing sub-modules determine the target service that refers to the update data, and then update the update data to the service cache corresponding to the target service. Because the cache processing submodule is determined in a parallel judgment mode, the business cache can be quickly refreshed even under the condition that the number of data tables in the database is large, and the refreshing efficiency of the business cache is greatly improved.
In an alternative embodiment, the step S304 may include:
and calling at least one service processing sub-module corresponding to the at least one target service one by one, generating a primary key and a key value to be written according to the updated data, and writing the primary key and the key value to be written into a corresponding service cache.
In an example, the first cache sub-module may directly call the service processing sub-module, the service processing sub-module generates a primary key and a key value to be written according to the update data, and writes the primary key and the key value into the service cache corresponding to the service processing sub-module.
The primary key refers to a primary key in the service cache, and can be generated by the service processing submodule. The key value may be the update data.
In another example, the service refreshing module described in step S302 may call a service processing sub-module, and the service processing sub-module completes the refreshing of the service cache.
On the basis of the foregoing embodiments, the present embodiment relates to a process of acquiring updated service cache data by a terminal device.
Fig. 4 is a schematic flow chart of a data caching processing method according to an embodiment of the present invention, and as shown in fig. 4, the method further includes:
s401, receiving a data acquisition request sent by the terminal equipment, wherein the data acquisition request is used for requesting the data of the target service.
When a user performs operations such as starting an APP and clicking a specific button on a terminal device, the terminal device may be triggered to send a data acquisition request to a server. For example, if the user clicks a button for viewing user information in an APP of the terminal device, the terminal device may send a request for obtaining data to the server, where the request carries an identifier of a "user information" service.
S402, according to the data acquisition request, reading the updated data of the target service from the service cache corresponding to the target service.
If the server updates the service cache of the requested target service before receiving the request of the terminal device, after receiving the request for the target service, the server may find the service cache of the target service according to the service identifier in the request, and read the updated data from the service cache corresponding to the target service.
And S403, sending the updated data of the target service to the terminal equipment.
On the basis of the above embodiments, the present embodiment relates to a process of updating a database.
Fig. 5 is a schematic flow chart of a data caching processing method according to an embodiment of the present invention, and as shown in fig. 5, the method further includes:
and S501, receiving the updating data input by the user.
In one example, the update data may be entered at the server side by a back-office administrator.
In another example, the update data may be entered by a user on the terminal device, which sends the update data to the server.
And S502, updating the updating data into the target data table.
Optionally, the internet system provides a visual interface, the user adds, modifies and deletes the data in the data table in the visual interface, and the server updates the updated data into the target data table after the user operation is completed.
It should be noted that the above steps S501-S502 may be executed before the above step S301, and may be executed after the above step S304, that is, after the database is updated at any time during the operation of the internet system.
Fig. 6 is a block diagram of a data cache processing apparatus according to an embodiment of the present invention, where a database includes at least two data tables, and each data table corresponds to one cache processing sub-module, as shown in fig. 6, the apparatus includes:
the obtaining module 601 is configured to obtain an identifier of update data in a database and an identifier of a target data table storing the update data.
A first calling module 602, configured to call each cache processing sub-module according to the identifier of the data table of the target data, and determine whether the target data table is a data table corresponding to the cache processing sub-module in parallel.
A second calling module 603, configured to, when the target data table is a data table corresponding to the first cache processing submodule, call the first cache processing submodule to determine, according to the identifier of the update data and the identifier of the data table, at least one target service that refers to the update data.
A first updating module 604, configured to update the update data to a service cache corresponding to the at least one target service.
The device is used for realizing the method embodiments, the realization principle and the technical effect are similar, and the details are not repeated here.
In another embodiment, the first updating module 604 is specifically configured to:
and calling at least one service processing sub-module corresponding to the at least one target service one by one, generating a primary key and a key value to be written according to the updated data, and writing the primary key and the key value to be written into a corresponding service cache.
Fig. 7 is a block diagram of a data cache processing apparatus according to an embodiment of the present invention, and as shown in fig. 7, the apparatus further includes:
a receiving module 605, configured to receive a data obtaining request sent by a terminal device, where the data obtaining request is used to request data of the target service.
A reading module 606, configured to read, according to the data obtaining request, the updated data of the target service from the service cache corresponding to the target service.
A sending module 607, configured to send the updated data of the target service to the terminal device.
In another embodiment, the receiving module is configured to:
receiving the updating data input by the user.
Fig. 8 is a block diagram of a data cache processing apparatus according to an embodiment of the present invention, and as shown in fig. 8, the apparatus further includes:
a second updating module 608, configured to update the update data into the target data table.
In another embodiment, the identification of the update data includes a location of the update data in the target data table.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the determining module may be a processing element separately set up, or may be implemented by being integrated in a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and the function of the determining module is called and executed by a processing element of the apparatus. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when some of the above modules are implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor that can call program code. As another example, these modules may be integrated together, implemented in the form of a system-on-a-chip (SOC).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Fig. 9 is a schematic structural diagram of an electronic device 900 according to an embodiment of the present invention. As shown in fig. 9, the electronic device may include: the system comprises a processor 91, a memory 92, a communication interface 93 and a system bus 94, wherein the memory 92 and the communication interface 93 are connected with the processor 91 through the system bus 94 and complete mutual communication, the memory 92 is used for storing computer execution instructions, the communication interface 93 is used for communicating with other devices, and the processor 91 implements the scheme of the embodiment shown in fig. 3 to 5 when executing the computer program.
The system bus mentioned in fig. 9 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The communication interface is used for realizing communication between the database access device and other equipment (such as a client, a read-write library and a read-only library). The memory may comprise Random Access Memory (RAM) and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor may be a general-purpose processor, including a central processing unit CPU, a Network Processor (NP), and the like; but also a digital signal processor DSP, an application specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Optionally, an embodiment of the present application further provides a storage medium, where instructions are stored in the storage medium, and when the storage medium is run on a computer, the storage medium causes the computer to execute the method according to the embodiment shown in fig. 2 to 5.
Optionally, an embodiment of the present application further provides a chip for executing the instruction, where the chip is configured to execute the method in the embodiment shown in fig. 3 to 5.
Embodiments of the present invention further provide a program product, where the program product includes a computer program, where the computer program is stored in a storage medium, and at least one processor may read the computer program from the storage medium, and when the at least one processor executes the computer program, the at least one processor may implement the method in the embodiments shown in fig. 3 to 5.
In the embodiments of the present invention, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division". "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
It is to be understood that the various numerical references referred to in the embodiments of the present invention are merely for convenience of description and distinction and are not intended to limit the scope of the embodiments of the present invention.
It should be understood that, in the embodiment of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A data cache processing method is characterized in that a database comprises at least two data tables, each data table corresponds to a cache processing submodule, and the method comprises the following steps:
acquiring an identifier of update data in a database and an identifier of a target data table for storing the update data;
calling each cache processing submodule according to the identification of the data table of the target data, and judging whether the target data table is a data table corresponding to the cache processing submodule in parallel; each data table comprises a plurality of data, and each data corresponds to one record in the data table;
if the target data table is a data table corresponding to a first cache processing submodule, calling the first cache processing submodule to determine at least one target service for referring to the updated data according to the identification of the updated data and the identification of the data table;
and updating the updating data to a service cache corresponding to the at least one target service.
2. The method according to claim 1, wherein the updating the update data to the service cache corresponding to the at least one target service comprises:
and calling at least one service processing sub-module corresponding to the at least one target service one by one, generating a primary key and a key value to be written according to the updated data, and writing the primary key and the key value to be written into a corresponding service cache.
3. The method of claim 1, further comprising:
receiving a data acquisition request sent by terminal equipment, wherein the data acquisition request is used for requesting data of the target service;
reading updated data of the target service from a service cache corresponding to the target service according to the data acquisition request;
and sending the updated data of the target service to the terminal equipment.
4. The method according to any one of claims 1-3, further comprising:
receiving the updating data input by a user;
and updating the updating data into the target data table.
5. The method of any of claims 1-3, wherein the identification of the update data comprises a location of the update data in the target data table.
6. A data cache processing apparatus, wherein a database includes at least two data tables, and each data table corresponds to a cache processing sub-module, the apparatus comprising:
the acquisition module is used for acquiring an identifier of updated data in a database and an identifier of a target data table for storing the updated data;
the first calling module is used for calling each cache processing sub-module according to the identification of the data table of the target data and judging whether the target data table is the data table corresponding to the cache processing sub-module or not in parallel; each data table comprises a plurality of data, and each data corresponds to one record in the data table;
the second calling module is used for calling the first cache processing submodule to determine at least one target service for referring to the updated data according to the identifier of the updated data and the identifier of the data table when the target data table is the data table corresponding to the first cache processing submodule;
and the first updating module is used for updating the updating data to a service cache corresponding to the at least one target service.
7. The apparatus of claim 6, wherein the first update module is specifically configured to:
and calling at least one service processing sub-module corresponding to the at least one target service one by one, generating a primary key and a key value to be written according to the updated data, and writing the primary key and the key value to be written into a corresponding service cache.
8. The apparatus of claim 6, further comprising:
a receiving module, configured to receive a data acquisition request sent by a terminal device, where the data acquisition request is used to request data of the target service;
a reading module, configured to read updated data of the target service from a service cache corresponding to the target service according to the data obtaining request;
and the sending module is used for sending the updated data of the target service to the terminal equipment.
9. An electronic device, comprising:
a memory for storing program instructions;
a processor for invoking and executing program instructions in said memory for performing the method steps of any of claims 1-5.
10. A readable storage medium, characterized in that a computer program is stored in the readable storage medium for performing the method of any of claims 1-5.
CN201910061979.6A 2019-01-23 2019-01-23 Data caching processing method and device, electronic equipment and readable storage medium Active CN109885786B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910061979.6A CN109885786B (en) 2019-01-23 2019-01-23 Data caching processing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910061979.6A CN109885786B (en) 2019-01-23 2019-01-23 Data caching processing method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN109885786A CN109885786A (en) 2019-06-14
CN109885786B true CN109885786B (en) 2021-06-08

Family

ID=66926501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910061979.6A Active CN109885786B (en) 2019-01-23 2019-01-23 Data caching processing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN109885786B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515959B (en) * 2019-07-25 2022-09-20 北京奇艺世纪科技有限公司 Data consistency implementation method and device and readable storage medium
CN110716885B (en) * 2019-10-23 2022-02-18 北京字节跳动网络技术有限公司 Data management method and device, electronic equipment and storage medium
CN111083219A (en) * 2019-12-11 2020-04-28 深信服科技股份有限公司 Request processing method, device, equipment and computer readable storage medium
CN111752916B (en) * 2019-12-30 2024-04-16 北京沃东天骏信息技术有限公司 Data acquisition method and device, computer readable storage medium and electronic equipment
CN113495805B (en) * 2020-03-19 2024-06-07 阿里巴巴集团控股有限公司 Data processing method, node determining method, device, equipment and medium
CN114205368B (en) * 2020-08-27 2023-06-30 腾讯科技(深圳)有限公司 Data storage system, control method, control device, electronic equipment and storage medium
CN112749233B (en) * 2021-01-15 2024-05-17 京东科技控股股份有限公司 Data synchronization method, device, electronic equipment and storage medium
CN113220669B (en) * 2021-06-09 2024-04-16 京东科技控股股份有限公司 Service data processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107103068A (en) * 2017-04-18 2017-08-29 聚好看科技股份有限公司 The update method and device of service buffer
CN107122410A (en) * 2017-03-29 2017-09-01 武汉斗鱼网络科技有限公司 A kind of buffering updating method and device
CN108304408A (en) * 2017-01-12 2018-07-20 ***通信集团公司 A kind of data cached method for refreshing and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10025796B2 (en) * 2015-04-29 2018-07-17 Box, Inc. Operation mapping in a virtual file system for cloud-based shared content
CN107066570A (en) * 2017-04-07 2017-08-18 聚好看科技股份有限公司 Data managing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304408A (en) * 2017-01-12 2018-07-20 ***通信集团公司 A kind of data cached method for refreshing and device
CN107122410A (en) * 2017-03-29 2017-09-01 武汉斗鱼网络科技有限公司 A kind of buffering updating method and device
CN107103068A (en) * 2017-04-18 2017-08-29 聚好看科技股份有限公司 The update method and device of service buffer

Also Published As

Publication number Publication date
CN109885786A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109885786B (en) Data caching processing method and device, electronic equipment and readable storage medium
CN108153670B (en) Interface testing method and device and electronic equipment
CN111352902A (en) Log processing method and device, terminal equipment and storage medium
WO2021189953A1 (en) Log data processing method and apparatus, computer device, and storage medium
CN109213604B (en) Data source management method and device
US20220158957A1 (en) Method, apparatus, and computer program product for initiating and executing a group based communication browser session and rendering a group based communication interface
US11082429B2 (en) Providing access to content within a computing environment
CN108363741B (en) Big data unified interface method, device, equipment and storage medium
CN108011949B (en) Method and apparatus for acquiring data
US10509716B2 (en) Automated recovery of flighted features based on service requests
US20230030856A1 (en) Distributed table storage processing method, device and system
CN112860953A (en) Data importing method, device, equipment and storage medium of graph database
JP7221652B6 (en) External change detection
CN116662499A (en) Data acquisition method and device, electronic equipment and storage medium
CN108399223B (en) Data acquisition method and device and electronic equipment
US10394628B1 (en) In-line event handlers across domains
CN113010587A (en) Data source configuration method, device, terminal, server and medium
CN111988195A (en) Response scheme determination method, device, equipment and medium for packet test
CN112256654A (en) Document sharing method and device
CN110858201A (en) Data processing method and system, processor and storage medium
CN111913980B (en) Equipment management method and device
CN113726885B (en) Flow quota adjusting method and device
US20230359506A1 (en) Methods and apparatus for aggregating metadata of multiple cloud databases
US20230153457A1 (en) Privacy data management in distributed computing systems
US20240211961A1 (en) System and method for managing issues using knowledge base metadata

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
GR01 Patent grant
GR01 Patent grant