public class AerospikeCache extends Object implements Cache
Cache.ValueRetrievalException, Cache.ValueWrapper| Modifier and Type | Field and Description |
|---|---|
protected com.aerospike.client.AerospikeClient |
client |
protected com.aerospike.client.policy.WritePolicy |
createOnly |
protected String |
namespace |
protected String |
set |
| Constructor and Description |
|---|
AerospikeCache(String namespace,
String set,
com.aerospike.client.AerospikeClient client,
long expiration) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
evict(Object key) |
Cache.ValueWrapper |
get(Object key) |
<T> T |
get(Object key,
Callable<T> valueLoader) |
<T> T |
get(Object key,
Class<T> type) |
protected com.aerospike.client.Key |
getKey(Object key) |
String |
getName() |
Object |
getNativeCache() |
void |
put(Object key,
Object value) |
Cache.ValueWrapper |
putIfAbsent(Object key,
Object value) |
protected com.aerospike.client.AerospikeClient client
protected String namespace
protected String set
protected com.aerospike.client.policy.WritePolicy createOnly
protected com.aerospike.client.Key getKey(Object key)
public Cache.ValueWrapper get(Object key)
public Object getNativeCache()
getNativeCache in interface Cachepublic Cache.ValueWrapper putIfAbsent(Object key, Object value)
putIfAbsent in interface CacheCopyright © 2011-2016–2017 Aerospike Inc.. All rights reserved.