public abstract class SessionCacheService extends Object implements CacheService
| 限定符和类型 | 字段和说明 |
|---|---|
protected com.google.common.cache.LoadingCache<Key,Value> |
readWriteCacheMap |
| 构造器和说明 |
|---|
SessionCacheService() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Value |
generatePayload(Key key) |
Value |
getValue(Key key)
get cache by key
|
Value |
getValueIfPresent(Key key) |
void |
invalidate(Key key)
invalidate cache by key
|
void |
setCacheGenerators(Map<String,CacheGenerator> cacheGenerators)
Setter method for property cacheGenerators.
|
public Value getValue(Key key) throws CacheAccessException
CacheServicegetValue 在接口中 CacheServicekey - keyCacheAccessExceptionpublic Value getValueIfPresent(Key key)
getValueIfPresent 在接口中 CacheServicepublic void invalidate(Key key)
CacheServiceinvalidate 在接口中 CacheServicekey - key@Autowired public void setCacheGenerators(Map<String,CacheGenerator> cacheGenerators)
cacheGenerators - value to be assigned to property cacheGeneratorsCopyright © 2023 The Ant Financial. All rights reserved.