会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
进击的算法
attaking algorithm & big data
管理
2018年7月17日
Java实现本地缓存
摘要: 本地缓存的作用: 0.基于LinkedHashMap实现LRU 1) 构造LRUMap类,重写LinkedHashMap中removeEldestEntry方法; 新增元素的时候,会判断当前map大小是否超过DEFAULT_MAX_CAPACITY,超过则移除map中最老的节点; 2)LinkedH
阅读全文
posted @ 2018-07-17 15:34 shawshawwan
阅读(2286)
评论(0)
推荐(0)
编辑