public interface CacheFactory
| 限定符和类型 | 方法和说明 |
|---|---|
AbsCache |
getCache(String cacheName) |
AbsCache |
getCache(String cacheName,
boolean skipNull) |
Map<String,? extends AbsCache> |
getMap() |
AbsCache |
register(CacheName cacheName) |
AbsCache |
register(String cacheName,
Long timeToLiveSeconds,
Long timeToIdleSeconds)
注册并获取一个 Cache 实例。
|
<T> AbsCache |
register(String cacheName,
Long timeToLiveSeconds,
Long timeToIdleSeconds,
RemovalListenerWrapper<T> removalListenerWrapper) |
AbsCache register(String cacheName, Long timeToLiveSeconds, Long timeToIdleSeconds)
cacheName - 缓存名称timeToLiveSeconds - 存活时间(秒)timeToIdleSeconds - 空闲时间(秒)<T> AbsCache register(String cacheName, Long timeToLiveSeconds, Long timeToIdleSeconds, RemovalListenerWrapper<T> removalListenerWrapper)
Copyright © 2024. All rights reserved.