摘要: 本地缓存的作用: 0.基于LinkedHashMap实现LRU 1) 构造LRUMap类,重写LinkedHashMap中removeEldestEntry方法; 新增元素的时候,会判断当前map大小是否超过DEFAULT_MAX_CAPACITY,超过则移除map中最老的节点; 2)LinkedH 阅读全文
posted @ 2018-07-17 15:34 shawshawwan 阅读(2286) 评论(0) 推荐(0) 编辑