会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
funny_coding
博客园
首页
新随笔
联系
管理
订阅
2018年8月5日
缓存方案:本地guavaCache, 远程redis?
摘要: 线程内部缓存:a. 局部变量HashMap, 方法间传递 b. 使用ThreadLocal 本地缓存:单jvm内共享 可以使用(Concurrent)HashMap自己实现,也可以使用GuavaCache。 guavaCache支持过期自动删除(全局的过期时间),垃圾回收, 回收通知。。。 远程缓存
阅读全文
posted @ 2018-08-05 19:08 funny_coding
阅读(2327)
评论(0)
推荐(0)
编辑
公告
build beautiful things, share happiness