@Internal public class CacheOperations<K,V> extends Object
DeferredOperationsCache
Constructor and Description |
---|
CacheOperations() |
Modifier and Type | Method and Description |
---|---|
void |
cache(K key,
V value) |
void |
clear()
Clear all recorded cache cachedOperations
|
Set<K> |
filter(Iterable<K> globalKeys)
Filters the supplied list of keys by adding those from any 'put' operations and removing those from any 'remove'
operations.
|
V |
get(K key) |
boolean |
isRemoved(K key) |
int |
operationCount() |
void |
perform(com.atlassian.cache.Cache<K,V> cache)
Perform all recorded cachedOperations on the provided cache
|
void |
put(K key,
V value) |
int |
putCount() |
void |
putIfAbsent(K key,
V value) |
int |
putIfAbsentCount() |
void |
remove(K key) |
void |
removeAll(Collection<K> keys) |
int |
removeCount() |
int |
valueCount() |
public boolean isRemoved(K key)
public void remove(K key)
public void removeAll(Collection<K> keys)
public void clear()
public Set<K> filter(Iterable<K> globalKeys)
public void perform(com.atlassian.cache.Cache<K,V> cache)
cache
- Cache to perform cachedOperations onpublic int operationCount()
public int putIfAbsentCount()
public int putCount()
public int removeCount()
public int valueCount()
Copyright © 2003–2017 Atlassian. All rights reserved.