Cache management method and device based on data dependency and consistency guarantee

By adopting a cache management method based on data dependencies and consistency guarantees, the problem of inconsistency between cached data and database data in existing technologies is solved. This achieves low-code-intrusion cache management, supports precise invalidation of single and multiple records, and ensures data consistency.

CN114416798BActive Publication Date: 2024-11-12SHANGHAI FINANCIAL FUTURES INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210066453.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-20
Publication Date
2024-11-12
Estimated Expiration
2042-01-20

AI Technical Summary

Technical Problem

Existing tools or solutions lack a data dependency framework, cannot provide a complete automatic resolution of the relationship network, and cannot implement a cache management method based on data dependencies and consistency guarantees, resulting in inconsistencies between cached data and database data.

Method used

This paper provides a cache management method and system based on data dependency and consistency guarantee. It achieves low code intrusion through annotation, including data query, addition, deletion and update processes. It uses the single data object eviction algorithm to manage the dependency relationship of cached data and ensure consistency.

Benefits of technology

It enables automatic identification and management of cached data dependencies when data objects change, ensuring consistency between cached data and database data. It provides a flexible cache management entry point and supports precise expiration management of single and multiple records.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114416798B_ABST
    Figure CN114416798B_ABST
Patent Text Reader

Abstract

The present invention discloses a cache management method and system based on data dependency and consistency guarantee, which realizes cache management requirements in a low-code intrusion manner, that is, only through annotations in user code without writing management logic. The technical solution is: First, single record / multiple records: based on the management differences between single data element return values ​​and multiple data element return values, and collections and pages in multiple record types. Second, five entry points: provide cache management entry for the four operations of adding, deleting, modifying and querying, so as to achieve the goal of low-code intrusion. Third, processing of data query logic: including parsing query results, completing type identification of query results and creation of dependency network through automatic type identification and id calculation. Fourth, single data object eviction algorithm: divide the failure mode into deletion mode / update mode, and combine the characteristics of different cache types in single record / multiple records for differentiated management.
Need to check novelty before this filing date? Find Prior Art