public interface PersistenceCache<K,V>
| Modifier and Type | Method and Description |
|---|---|
V |
get(K key) |
Map<K,V> |
get(K[] keys) |
int |
getDefaultTimeToLiveSeconds() |
V |
putIfAbsent(K key,
V value,
int timeToLiveSeconds) |
void |
remove(K key) |
void |
set(K key,
V value,
int timeToLiveSeconds) |
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
CacheOperationExceptionvoid remove(K key) throws CacheOperationException
CacheOperationExceptionCopyright © 2020. All rights reserved.