diff --git a/ContentGrabbingJi-CacheStore-api/README.md b/ContentGrabbingJi-CacheStore-api/README.md new file mode 100644 index 0000000..9071452 --- /dev/null +++ b/ContentGrabbingJi-CacheStore-api/README.md @@ -0,0 +1,10 @@ +# CacheStore-API # + +如需开发更多缓存组件,至少需要实现以下接口: +- CacheStore + - 不一定要实现该接口, 可以直接实现 具体的接口(比如 `SingleCacheStore`) +- CacheStoreFactory + - 你还需要为其添加 `@Factory` 注解,否则不会生效。 +- SingleCacheStore + +正常情况下,该模块不需要进行更改,即使需要更改,也需要保证向后兼容性。 diff --git a/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/CollectionCacheStore.java b/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/CollectionCacheStore.java index ba2714f..b77f7c8 100644 --- a/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/CollectionCacheStore.java +++ b/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/CollectionCacheStore.java @@ -22,6 +22,8 @@ import java.util.Collection; /** * 集合型缓存存储容器. * @param 元素类型. + * @param 集合类型. + * @see Collection * @author LamGC */ public interface CollectionCacheStore> extends CacheStore {