public class DefCacheLoader extends com.google.common.cache.CacheLoader<CacheLoadKeys,Map<Serializable,Object>>
| 构造器和说明 |
|---|
DefCacheLoader(EchoProperties.GuavaCache guavaCache) |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<Serializable,Object> |
load(CacheLoadKeys type)
内存缓存不存在时, 调用时触发加载数据
|
com.google.common.util.concurrent.ListenableFuture<Map<Serializable,Object>> |
reload(CacheLoadKeys key,
Map<Serializable,Object> oldValue)
重新载入数据
|
public DefCacheLoader(EchoProperties.GuavaCache guavaCache)
public Map<Serializable,Object> load(@NonNull CacheLoadKeys type)
load 在类中 com.google.common.cache.CacheLoader<CacheLoadKeys,Map<Serializable,Object>>type - 扩展参数public com.google.common.util.concurrent.ListenableFuture<Map<Serializable,Object>> reload(@NonNull CacheLoadKeys key, @NonNull Map<Serializable,Object> oldValue)
reload 在类中 com.google.common.cache.CacheLoader<CacheLoadKeys,Map<Serializable,Object>>key - 扩展参数oldValue - 原来的值Copyright © 2021. All rights reserved.