Data caching method and device, electronic equipment and storage medium
A data cache and data technology, applied in database update, digital data processing, structured data retrieval, etc., can solve problems such as poor user experience, and achieve the effect of maintaining consistency and ensuring timely updates.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] figure 1 It is a flow chart of a data caching method provided by Embodiment 1 of the present disclosure. This embodiment is especially suitable for timely updating local caches in the state of data intercommunication. This method can be executed by a data caching device. The data caching The device may be configured in a terminal or a server to implement the data caching method of the embodiment of the present disclosure. Such as figure 1 As shown, the method of this embodiment may specifically include:
[0025] S110. Acquire log information generated by the local database when a data change event of the local database is detected.
[0026] Exemplarily, when a data change event of the local database is detected, obtaining log information of the local database may include: obtaining log information of the local database when a local change operation of data of the local database is detected, wherein the Local alter operations may include modify, write, and / or delete o...
Embodiment 2
[0039] figure 2 It is a schematic flowchart of a data caching method provided in Embodiment 2 of the present disclosure. This embodiment is further optimized based on each optional solution in the foregoing embodiments. In this embodiment, optionally, the parsing the log information and updating the local cache according to the parsing result includes: parsing out the change data and data operation sequence information in the log information, and according to the change data And the data operation order information updates the local cache.
[0040] In the embodiment of the present disclosure, optionally, parsing the log information includes: controlling the local database to send the log information to the incremental data subscription and consumption service component; based on the incremental data subscription and The consumer service component parses the log information.
[0041] Such as figure 2 As shown, the method of this embodiment may specifically include:
[0042]...
Embodiment 3
[0058] Figure 4 It is a schematic structural diagram of a data cache device provided in Embodiment 3 of the present disclosure, as shown in Figure 4 As shown, the data caching device provided by the embodiment of the present disclosure may include: a log information obtaining module 410 and a local cache updating module 420 . Among them, the log information obtaining module 410 is used to obtain the log information generated by the local database when a data change event of the local database is detected; the local cache update module 420 is used to analyze the log information and update the local cache.
[0059] In the technical solution of the embodiment of the present disclosure, by analyzing the log information generated when the data change event of the local database occurs, since the log information records the data information and data operation information of the local database, the local cache is updated according to the analysis result to solve the problem of Th...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com