Method and system for realizing consistency of database and cache by cache deletion retry mechanism
A technology for caching data and databases, applied in the computer field, can solve problems such as dirty data, cache and database inconsistencies, and achieve the effect of ensuring consistency, solving data inconsistencies, and achieving good results.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0030] The present invention will be further described below in conjunction with the accompanying drawings.
[0031] see figure 1 As shown, the cache deletion retry mechanism of the present invention implements a database and cache consistency method, and the method includes the following steps:
[0032] Step S1, receiving a database update operation, and writing a request to update the database;
[0033] Step S2, there is a problem with the cached data, resulting in deletion failure;
[0034] Step S3, putting the key value that failed to be deleted into the message queue;
[0035] Step S4, subscribe to the message of the message queue, and obtain the key value to be deleted;
[0036] Step S5, retry the operation of deleting the cached data to ensure the final consistency between the cached data and the database.
[0037] The present invention will be further described below by a specific embodiment:
[0038] Step 1: Write a request to update the database
[0039] ---Tak...
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