public class GuavaCacheManager extends AbstractCacheManager
CacheManager that
creates a cache instance what stores data in the Cache.| 限定符和类型 | 类和说明 |
|---|---|
static interface |
GuavaCacheManager.CacheFactory
A factory to create a cache instance.
|
static class |
GuavaCacheManager.DefaultCacheFactory
A default
GuavaCacheManager.CacheFactory implementation,
if expire time greater than 0, use CacheBuilder.expireAfterWrite(long, TimeUnit),
if expire time less than 0, use CacheBuilder.weakKeys() and CacheBuilder.weakValues(). |
protected static class |
GuavaCacheManager.GuavaCacheObject<K>
A
CacheObject implementation that stores data in the Cache. |
AbstractCacheManager.AbstractCacheObject<K>DEFAULT_GUAVA_CACHE_MANAGER_NAME, DEFAULT_MAP_CACHE_MANAGER_NAME| 构造器和说明 |
|---|
GuavaCacheManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <K> @NonNull GuavaCacheManager.GuavaCacheObject<K> |
doCreateCache(String name,
Long expireTime,
TimeUnit timeUnit)
Create cache instance.
|
String |
getName()
Get the component name.
|
clearAll, createCache, getCache, invalidate, removeCachepublic String getName()
protected <K> @NonNull GuavaCacheManager.GuavaCacheObject<K> doCreateCache(String name, Long expireTime, TimeUnit timeUnit)
doCreateCache 在类中 AbstractCacheManagername - cache nameexpireTime - expire timetimeUnit - time unitCopyright © 2024. All rights reserved.