一种基于数据、权限变更通知的响应式缓存预热方法

By introducing a data and permission change notification mechanism, and building a query engine and event handling logic, timely updates and a high success rate of the cache were achieved, solving the problems of untimely updates and low hit rate in the cache system, and improving the system's response speed and reliability.

CN118964404BActive Publication Date: 2026-07-17BEIJING BAILONG MAYUN TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING BAILONG MAYUN TECH CO LTD
Filing Date
2024-07-27
Publication Date
2026-07-17

Smart Images

  • Figure CN118964404B_ABST
    Figure CN118964404B_ABST
Patent Text Reader

Abstract

本发明提供了一种基于数据、权限变更通知的响应式缓存预热方法,包括以下步骤:S1、构建query engine查询引擎‑利用查询引擎优先从redis缓存中读取结果;S2、在后端请求中插入查询记录‑用于选取预热目标数据使用;S3、数据集数据更新‑更新成功则将跟新事件写入数据集事件表;S4、监听数据集、权限变更事件;S5、构建数据集事件处理逻辑;本发明通过引入通知机制,来提升缓存预热时机的准确性和及时性,并且每个缓存预热请求使用独立的任务进行执行,具有完善的失败重试策略,保证了预热请求的高成功率,通过使用查询统计和优先级策略来选取需要预热的数据,模拟用户查询路径构建查询参数来预热缓存,缓存有效性高。
Need to check novelty before this filing date? Find Prior Art