| 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)创建定时缓存. | 
| static <K,V> TimedCache<K,V> | CacheUtil. newTimedCache(long timeout,
             long schedulePruneDelay)创建定时缓存,通过定时任务自动清除过期缓存对象 | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | WeakCache<K,V>弱引用缓存 对于一个给定的键,其映射的存在并不阻止垃圾回收器对该键的丢弃,这就使该键成为可终止的,被终止,然后被回收。 | 
Copyright © 2025. All rights reserved.