Package | Description |
---|---|
cn.hutool.cache |
提供简易的缓存实现,此模块参考了jodd工具中的Cache模块
|
Modifier and Type | Method and Description |
---|---|
static <K,V> LRUCache<K,V> |
CacheUtil.newLRUCache(int capacity)
创建LRU (least recently used)最近最久未使用缓存.
|
static <K,V> LRUCache<K,V> |
CacheUtil.newLRUCache(int capacity,
long timeout)
创建LRU (least recently used)最近最久未使用缓存.
|
Copyright © 2024. All rights reserved.