Commit Graph

24 Commits

Author SHA1 Message Date
a090abc9a4
[Change] CacheStore-API, CacheStore-Local, CacheStore-Redis 调整 MapCacheStore.putAll 方法参数;
[Change] MapCacheStore 调整 'putAll' 方法的泛型, 以兼容类型的子类;
[Change] HashMapCacheStore, RedisMapCacheStore 适配更改;
2021-01-12 06:39:48 +08:00
0968c5c6af
[Update][Fix] ALL 修正版权信息, 更新年份;
[Update] * 更新年份;
[Fix] * 由 AGPLv3-Later 更新为 AGPLv3-Only;

2021, 新年快乐! (新的一年继续努力吧! :D)
2021-01-01 18:26:20 +08:00
87e6dbb9e7
[Add] CacheStore-Local 添加单元测试以完善模块单元测试覆盖;
[Add] LocalCacheStoreFactoryTest 添加针对 LocalCacheStoreFactory 的单元测试类;
[Add] HashSetCacheStoreTest 添加针对 HashSetCacheStore 的单元测试类;
2021-01-01 12:30:06 +08:00
18107db418
[Optimize] CacheStore-Local 修复代码规范错误;
[Optimize] CopyOnWriteArrayListCacheStore 整理格式;
2021-01-01 11:49:47 +08:00
280c5b22ac
[Rename] CacheStore-Local 更改测试类以符合规范(?);
[Rename] ListCacheStoreTest -> CopyOnWriteArrayListCacheStoreTest;
2021-01-01 11:47:14 +08:00
5246df6b50
[Change] CacheStore-Local 删除不可能条件;
[Change] HashCacheStore 删除不可能条件(Hashtable 在 put 中已经进行了 Null 检查);
2021-01-01 10:03:26 +08:00
1d8148f4c7
[Add][Update] CacheStore-API 添加新的测试, 并完善其他测试;
[Add] GetCacheStoreExceptionTest 添加针对 GetCacheStoreExceptionTest 的测试项;
[Update] HashSingleCacheStoreTest 完善单元测试项;
2021-01-01 09:45:19 +08:00
10fffca8b2
[Fix] CacheStore-Local 修复 AutoCleanTimer 因逻辑错误未能及时轮询清理 Cleanable 的问题;
[Fix] AutoCleanTimer 调整 'run()' 方法, 修复轮询执行错误并改善无效 Cleanable Reference 的清除方式;

Bug Description: 当发现 Reference 的指向为 null 时, 在收集了该对象后将会直接 return 导致后续轮询结束.
2021-01-01 09:29:51 +08:00
afd09968ac
[Add] CacheStore-Local 为 AutoCleanTimer 添加单元测试;
[Add] AutoCleanTimer 添加针对 AutoCleanTimer 的单元测试类;
2021-01-01 09:29:23 +08:00
4a2337afd7
[Change] CacheStore-local, CacheStore-redis 适配 CacheStore-API 模块的更改;
[Change] LocalCacheStoreFactory 适配更改;
[Change] RedisCacheStoreFactory 适配更改, 增加 Redis 配置文件相关逻辑;
[Change] RedisConnectionPool 增加 Redis 连接配置功能;
2020-11-05 00:55:40 +08:00
e2c6aca34c
[Change] CacheStore-Local 调整 AutoCleanTimer 初始化细节, 将 AutoCleanTimer 对 Cleanable 的强引用改为弱引用;
[Change] AutoCleanTimer 简化 static 代码块内容, 移除 debug 相关代码(目前用不上);
[Change] AutoCleanTimer 对 Cleanable 的强引用改为弱引用, 以防止 CacheStore 无法被回收导致内存泄漏;
2020-10-18 14:34:01 +08:00
9e4a66ca70
[Change] CacheStore-local 更改组件名;
[Change] LocalCacheStoreFactory 更改组件名('local' -> 'local-memory');
2020-10-17 12:01:07 +08:00
097c4a035c
[Update] CacheStore-local, CacheStore-redis 适配 CacheStore-api 的更改;
[Update] LocalCacheStoreFactory 根据 CacheStore-local 中实现的特性, 设置 Factory 注解中 source 参数;
[Update] RedisCacheStoreFactory 根据 CacheStore-redis 中实现的特性, 设置 Factory 注解中 source 参数;
2020-10-01 01:02:02 +08:00
862ddc871e
[Add] CacheStore-local 适配 SPI 机制;
[Add] META-INF/services/* 增加接口实现声明, 以支持 SPI 机制;
2020-09-12 03:11:59 +08:00
10c92d8812
[Update] CacheStore-local 适配更改;
[Update] LocalCacheStoreFactory 适配 CacheStore-api 对 CacheStoreFactory 的更改;
2020-09-12 02:59:40 +08:00
3c705ee16a
[Update] CacheStore-local 适配因加入 CacheKey 带来的变更;
[Update] * 适配更改;
2020-09-05 11:32:52 +08:00
d650f12626
[Add] 增加自动清理机制;
[Add] AutoCleanTimer, Cleanable 增加定时清理器和所需实现的接口;
[Update] HashCacheStore 实现了 Cleanable 接口, 并使用了一种简单但效率较低的遍历清除方法, 有待改进;
2020-09-04 23:36:23 +08:00
06c3af9350
[Change] 补充 HashMapCacheStore 对参数的 null 检查;
[Change] HashMapCacheStore 增加对参数的 null 检查, 及时抛出 NPE;
2020-09-04 23:30:35 +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
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
7461376141
[Add] 添加基于 Hashtable 的本地缓存存储容器;
[Add] HashCacheStore 添加 CacheStore 的抽象实现;
[Add] HashSingleCacheStore 添加 SingleCacheStore 的具体实现;
[Add] HashSingleCacheStoreTest 增加完整测试项(涵盖了 HashCacheStore);
2020-09-03 19:27:08 +08:00
2e78dd5931
[Add] 初始化组成模块; 2020-09-03 13:46:16 +08:00