Package org.aoju.bus.cache.metric
Class GuavaCache
java.lang.Object
org.aoju.bus.cache.metric.GuavaCache
- All Implemented Interfaces:
CacheX
Guava 缓存支持
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()清空缓存信息从缓存中获得对象read(Collection<String> keys) 从缓存中获得一组对象信息void从缓存中移除对象void将对象加入到缓存,使用指定失效时长void将对象加入到缓存,使用指定失效时长
-
Constructor Details
-
GuavaCache
public GuavaCache(long size, long expire)
-
-
Method Details
-
read
Description copied from interface:CacheX从缓存中获得对象 -
read
Description copied from interface:CacheX从缓存中获得一组对象信息 -
write
Description copied from interface:CacheX将对象加入到缓存,使用指定失效时长 -
write
Description copied from interface:CacheX将对象加入到缓存,使用指定失效时长 -
remove
Description copied from interface:CacheX从缓存中移除对象 -
clear
public void clear()Description copied from interface:CacheX清空缓存信息
-