public interface PersistenceCache<K,V>
| Modifier and Type | Method and Description |
|---|---|
V |
get(K key) |
Map<K,V> |
get(K[] keys) |
int |
getDefaultTimeToLiveSeconds() |
CASValue<V> |
getViaCas(K key) |
V |
putIfAbsent(K key,
V value,
int timeToLiveSeconds) |
boolean |
putViaCas(K key,
V oldValue,
V value,
long version,
int timeToLiveSeconds) |
void |
remove(K key) |
boolean |
requiresCopyOnDistributedCASOperation() |
void |
set(K key,
V value,
int timeToLiveSeconds) |
boolean requiresCopyOnDistributedCASOperation()
int getDefaultTimeToLiveSeconds()
V get(K key) throws CacheOperationException
CacheOperationExceptionMap<K,V> get(K[] keys) throws CacheOperationException
CacheOperationExceptionvoid set(K key, V value, int timeToLiveSeconds) throws CacheOperationException
CacheOperationExceptionV putIfAbsent(K key, V value, int timeToLiveSeconds) throws CacheOperationException
CacheOperationExceptionboolean putViaCas(K key, V oldValue, V value, long version, int timeToLiveSeconds) throws CacheOperationException
CacheOperationExceptionvoid remove(K key) throws CacheOperationException
CacheOperationExceptionCopyright © 2017. All rights reserved.