| 程序包 | 说明 |
|---|---|
| org.dromara.hutool.core.cache |
提供简易的缓存实现,此模块参考了jodd工具中的Cache模块
|
| org.dromara.hutool.core.cache.impl |
提供各种缓存实现
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> TimedCache<K,V> |
CacheUtil.newTimedCache(long timeout)
创建定时缓存.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
WeakCache<K,V>
弱引用缓存
对于一个给定的键,其映射的存在并不阻止垃圾回收器对该键的丢弃,这就使该键成为可终止的,被终止,然后被回收。 |
Copyright © 2023. All rights reserved.