Method for efficiently managing caches based on data versions
A caching and data technology, applied in electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as pressure, achieve the effect of improving synchronization and consistency, and avoiding data inconsistency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment Construction
[0091] The present invention will be further described below in conjunction with specific examples.
[0092] An efficient cache management method based on data version, which makes up for the lack of MyBatis secondary cache control, improves the synchronization and consistency of secondary cache Cache and database data, and handles the relationship between each cache; accurately manages MyBatis Second-level cache, to achieve fine-grained control of MyBatis second-level cache; when the update operation on the database table is performed, you can specify to clear the cache generated by the query statement represented by a specific StatementId; the maintenance of the cache is independent , the caches will not affect each other. The statements in the specified Mapper will only affect the Cache corresponding to the Mapper. When some update operations are performed, the cache generated by a specific query statement can be refreshed or cleared to avoid data inconsistency .
[0093] ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More