Package org.aoju.bus.cache.metric
Class EhCache
java.lang.Object
org.aoju.bus.cache.metric.EhCache
- All Implemented Interfaces:
CacheX
EhCache进程内缓存框架,
具有快速、精干等特点
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()清空缓存信息从缓存中获得对象read(Collection<String> keys) 从缓存中获得一组对象信息void从缓存中移除对象voidtearDown()void将对象加入到缓存,使用指定失效时长void将对象加入到缓存,使用指定失效时长
-
Constructor Details
-
EhCache
public EhCache(long heapEntries, long offHeapMBSize, long diskGBSize) -
EhCache
-
-
Method Details
-
read
Description copied from interface:CacheX从缓存中获得对象 -
write
Description copied from interface:CacheX将对象加入到缓存,使用指定失效时长 -
read
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清空缓存信息 -
tearDown
@PreDestroy public void tearDown()
-