Commit Graph

77 Commits

Author SHA1 Message Date
4f877a03c2
[Add][Change] CacheStore-api 调整 CacheStoreFactory 的方法信息;
[Add] Factory 添加注解以设置固定信息;
[Add] FactoryPriority 添加优先级常量类;
[Add] GetCacheStoreException 增加异常以表示无法获取 CacheStore 对象;
[Change] CacheStoreFactory 增加'canGetCacheStore'方法, 调整方法签名以允许抛出异常;
2020-09-12 02:58:59 +08:00
9a3f8698d3
[Add] CacheStore-api 对 CacheKey 增加新的构造方法, 补充完整的单元测试;
[Add] CacheKey 添加构造方法 '<init>(String[])';
[Add] CacheKeyTest 添加针对 CacheKey 的完整单元测试;
2020-09-05 13:31:00 +08:00
3c705ee16a
[Update] CacheStore-local 适配因加入 CacheKey 带来的变更;
[Update] * 适配更改;
2020-09-05 11:32:52 +08:00
a24b810183
[Change] CacheStore-api 增加 CacheKey 以替代 String 作为 key 参数类型;
[Add] CacheKey 增加用于代表缓存项键的对象(可被缓存具体实现根据存储需要调整最终 key 的格式, 例如 Redis 的分隔符问题);
[Change] CacheStore, CollectionCacheStore, ListCacheStore, MapCacheStore, SingleCacheStore 适配更改;
2020-09-05 11:30:27 +08:00
d650f12626
[Add] 增加自动清理机制;
[Add] AutoCleanTimer, Cleanable 增加定时清理器和所需实现的接口;
[Update] HashCacheStore 实现了 Cleanable 接口, 并使用了一种简单但效率较低的遍历清除方法, 有待改进;
2020-09-04 23:36:23 +08:00
565049f393
[Delete] 从项目父 POM 中移除有关 Slf4j 实现的依赖项(最终依赖项交给 exec 模块);
[Delete] org.apache.logging.log4j:log4j-slf4j-impl 从父 POM 中移除该日志实现依赖项;
2020-09-04 23:32:56 +08:00
06c3af9350
[Change] 补充 HashMapCacheStore 对参数的 null 检查;
[Change] HashMapCacheStore 增加对参数的 null 检查, 及时抛出 NPE;
2020-09-04 23:30:35 +08:00
455f922cca
[Document] 更新 SetCacheStore 的一些说明;
[Document] SetCacheStore 更新说明;
2020-09-04 23:27:37 +08:00
49a6257148
[Add] CacheStore-local 添加 SetCacheStore 的实现, 添加 CacheStoreFactory 的实现;
[Add] HashSetCacheStore 添加基于 HashSet 的 SetCacheStore 实现;
[Add] LocalCacheStoreFactory 增加本地缓存库的 CacheStoreFactory;
2020-09-04 20:02:36 +08:00
688b99d198
[Add] 添加 MapCacheStore 的本地实现;
[Add] HashMapCacheStore 添加基于 Hashtable 的 MapCacheStore 实现;
[Add] HashMapCacheStoreTest 添加针对 HashMapCacheStore 的完整单元测试;
2020-09-04 19:58:45 +08:00
ba422ef90e
[Document] 调整 SetCacheStore 文档;
[Document] SetCacheStore 补充文档细节;
2020-09-04 19:22:27 +08:00
a7495156ff
[Add][Fix] 添加新的CacheStore子类型, 修复 CacheStoreFactory 方法命名错误;
[Fix] CacheStoreFactory 修复 newMapCacheStore():SingleCacheStore 方法命名错误(更名为 newSingleCacheStore);
[Add] MapCacheStore 初步添加映射表型缓存存储容器接口;
[Add] CacheStoreFactory 增加对 MapCacheStore 的获取方法;
2020-09-04 18:45:32 +08:00
372363085d
[Optimize] 整理单元测试代码;
[Optimize] HashSingleCacheStoreTest, ListCacheStoreTest 整理代码;
2020-09-04 17:51:02 +08:00
003f571aad
[Add] 添加 ListCacheStore 的本地实现;
[Add] CopyOnWriteArrayListCacheStore 添加基于 CopyOnWriteArrayList 的 ListCacheStore 实现;
[Add] LocalCollectionCacheStore 添加集合型本地缓存存储容器父类, 已实现 CollectionCacheStore 接口;
[Add] ListCacheStoreTest 添加对 CopyOnWriteArrayListCacheStore 的完整单元测试(同样包括了 LocalCollectionCacheStore 的测试);
2020-09-04 00:29:36 +08:00
7448379da0
[Document] 优化文档;
[Document] 优化 CacheStore-Api 模块的文档;
2020-09-04 00:25:01 +08:00
7461376141
[Add] 添加基于 Hashtable 的本地缓存存储容器;
[Add] HashCacheStore 添加 CacheStore 的抽象实现;
[Add] HashSingleCacheStore 添加 SingleCacheStore 的具体实现;
[Add] HashSingleCacheStoreTest 增加完整测试项(涵盖了 HashCacheStore);
2020-09-03 19:27:08 +08:00
9f08ca0eba
[Rename] 调整 SingleCacheStore 某个命名;
[Rename] SingleCacheStore 更改'setIfNoExist'为'setIfNotExist';
2020-09-03 19:25:30 +08:00
c02336b0b6
[Add] 添加 junit 依赖项;
[Add] junit:junit 添加依赖项;
2020-09-03 18:36:19 +08:00
ca6ee0972f
[Optimize][Change] 移除不必要的注解, 更改 Factory 中的泛型标记为合适的标记;
[Optimize] SingleCacheStore 移除不必要的语法规范检查注解(My bad :P);
[Change] CacheStoreFactory 更改'newListCacheStore'和'newSetCacheStore'的泛型标记('V(value)' -> 'E(element)');
2020-09-03 18:13:28 +08:00
3ecaf4db67
[Change] 调整CollectionCacheStore泛型声明以更好的开发对应实现;
[Change] CollectionCacheStore 增加 "C (Collection)" 泛型标记, 使下级接口能具体声明其 Collection 的具体类型;
[Change] ListCacheStore, SetCacheStore 适配更改;
2020-09-03 18:04:17 +08:00
e98fd82916
[Add][Moved] 调整Converter包路径, 增加StringToStringConverter;
[Moved] Converter, StringConverter 调整包路径;
[Add] StringToStringConverter 添加简易StringConverter实现;
[Change] CacheStoreFactory 适配更改;
2020-09-03 18:01:18 +08:00
6502385641
[Change][Fix] 调整 CollectionCacheStore 部分命名, 调整泛型声明;
[Change] CollectionCacheStore 调整命名, 由 value/values 更名为 element/elements;
[Fix] ListCacheStore, SetCacheStore 修复因泛型错误导致的类型错误问题;
2020-09-03 15:40:10 +08:00
74904cdfdb
[Add] 为 Core 模块添加 CacheStore-API 模块;
[Add] net.lamgc:ContentGrabbingJi-CacheStore-api 添加模块依赖项;
2020-09-03 14:30:21 +08:00
1420cd337b
[Fix] 修复 CollectionCacheStore#clearCollection 没有 key 参数的问题;
[Fix] CollectionCacheStore 为 clearCollection 方法添加 key 参数以指定缓存项;
2020-09-03 14:29:27 +08:00
6f8e03baf5
[Add] 添加CacheStore-API;
[Add] CacheStore 添加缓存存储容器父接口;
[Add] CollectionCacheStore, SetCacheStore, ListCacheStore 添加集合型缓存存储容器接口;
[Add] SingleCacheStore 添加单项缓存存储容器接口;
[Add] Converter, StringConverter 添加数据类型转换器接口;
[Add] CacheStoreFactory 添加CacheStore工厂接口;
2020-09-03 14:03:18 +08:00
2e78dd5931
[Add] 初始化组成模块; 2020-09-03 13:46:16 +08:00
55157c58c5
[Initial] Initial Commit;
[Add] .gitignore 添加git忽略规则文件;
[Add] LICENSE 添加 AGPLv3 开源许可证协议;
2020-09-03 13:24:18 +08:00