摘要: https://www.bookstack.cn/read/redisson-wiki-zh/Redisson%E9%A1%B9%E7%9B%AE%E4%BB%8B%E7%BB%8D.md 阅读全文
posted @ 2021-07-29 14:47 郑某人1 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 今天看hutool工具中的TimedCache 时好奇他的缓存机制及定时清除原理 便简单的看了一下他的源码,总结出是 Map(缓存数据)+ScheduledExecutorService(定时清除缓存),其中的定时任务感觉比较有意思,则拷贝出来 public enum GlobalPruneTime 阅读全文
posted @ 2021-07-29 14:37 郑某人1 阅读(1023) 评论(0) 推荐(0) 编辑