Package | Description |
---|---|
cn.hutool.cache |
提供简易的缓存实现,此模块参考了jodd工具中的Cache模块
|
cn.hutool.cache.impl |
提供各种缓存实现
|
Modifier and Type | Method and Description |
---|---|
static <K,V> TimedCache<K,V> |
CacheUtil.newTimedCache(long timeout)
创建定时缓存.
|
Modifier and Type | Class and Description |
---|---|
class |
WeakCache<K,V>
弱引用缓存
对于一个给定的键,其映射的存在并不阻止垃圾回收器对该键的丢弃,这就使该键成为可终止的,被终止,然后被回收。 丢弃某个键时,其条目从映射中有效地移除。 |
Copyright © 2021. All rights reserved.