Files
ContentGrabbingJi/ContentGrabbingJi-CacheStore-api
LamGC 75f19e5d21 [Add] CacheStore-api 增加对缓存存储源类型的标注, 以协助 Core 按需选择缓存容器;
[Add] CacheStoreSource 增加缓存存储源类型枚举类, 暂时添加目前已涉及的类型;
[Update] Factory 增加 CacheStoreSource 项目(因为 CacheStoreSource 是没有更改需要的;
2020-10-01 00:58:40 +08:00
..
2020-09-03 13:46:16 +08:00

CacheStore-API

如需开发更多缓存组件,至少需要实现以下接口:

  • CacheStore
    • 不一定要实现该接口, 可以直接实现 具体的接口(比如 SingleCacheStore
  • CacheStoreFactory
    • 你还需要为其添加 @Factory 注解,否则不会生效。
  • SingleCacheStore

正常情况下,该模块不需要进行更改,即使需要更改,也需要保证向后兼容性。