mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-29 22:27:33 +00:00
[Add] CacheStoreSource 增加缓存存储源类型枚举类, 暂时添加目前已涉及的类型; [Update] Factory 增加 CacheStoreSource 项目(因为 CacheStoreSource 是没有更改需要的; |
||
---|---|---|
.. | ||
src | ||
pom.xml | ||
README.md |
CacheStore-API
如需开发更多缓存组件,至少需要实现以下接口:
- CacheStore
- 不一定要实现该接口, 可以直接实现 具体的接口(比如
SingleCacheStore
)
- 不一定要实现该接口, 可以直接实现 具体的接口(比如
- CacheStoreFactory
- 你还需要为其添加
@Factory
注解,否则不会生效。
- 你还需要为其添加
- SingleCacheStore
正常情况下,该模块不需要进行更改,即使需要更改,也需要保证向后兼容性。