[Add][Document] CacheStore-API 更新 Javadoc 并添加初版 Readme.md;

[Add] README.md 增加子模块的 Readme;
[Document] CollectionCacheStore 更新 Javadoc;
This commit is contained in:
LamGC 2020-09-29 10:10:01 +08:00
parent 7d7085f8c5
commit 1c634af225
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# CacheStore-API #
如需开发更多缓存组件,至少需要实现以下接口:
- CacheStore
- 不一定要实现该接口, 可以直接实现 具体的接口(比如 `SingleCacheStore`
- CacheStoreFactory
- 你还需要为其添加 `@Factory` 注解,否则不会生效。
- SingleCacheStore
正常情况下,该模块不需要进行更改,即使需要更改,也需要保证向后兼容性。

View File

@ -22,6 +22,8 @@ import java.util.Collection;
/** /**
* 集合型缓存存储容器. * 集合型缓存存储容器.
* @param <E> 元素类型. * @param <E> 元素类型.
* @param <C> 集合类型.
* @see Collection
* @author LamGC * @author LamGC
*/ */
public interface CollectionCacheStore<E, C extends Collection<E>> extends CacheStore<C> { public interface CollectionCacheStore<E, C extends Collection<E>> extends CacheStore<C> {