| 程序包 | 说明 |
|---|---|
| com.dahuatech.hutool.cache |
提供简易的缓存实现,此模块参考了jodd工具中的Cache模块
|
| com.dahuatech.hutool.cache.impl |
提供各种缓存实现
|
| com.dahuatech.hutool.core.lang |
语言特性包,包括大量便捷的数据结构,例如验证器Validator,分布式ID生成器Snowflake等
|
| 限定符和类型 | 方法和说明 |
|---|---|
V |
Cache.get(K key,
Func0<V> supplier)
从缓存中获得对象,当对象不在缓存中或已经过期返回Func0回调产生的对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
V |
AbstractCache.get(K key,
Func0<V> supplier) |
V |
NoCache.get(K key,
Func0<V> supplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
V |
SimpleCache.get(K key,
Func0<V> supplier)
从缓存中获得对象,当对象不在缓存中或已经过期返回Func0回调产生的对象
|
Copyright © 2023. All rights reserved.