public class AerospikeCache extends Object implements org.springframework.cache.Cache
| 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) |
org.springframework.cache.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) |
org.springframework.cache.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 void clear()
clear in interface org.springframework.cache.Cachepublic void evict(Object key)
evict in interface org.springframework.cache.Cachepublic org.springframework.cache.Cache.ValueWrapper get(Object key)
get in interface org.springframework.cache.Cachepublic <T> T get(Object key, Class<T> type)
get in interface org.springframework.cache.Cachepublic String getName()
getName in interface org.springframework.cache.Cachepublic Object getNativeCache()
getNativeCache in interface org.springframework.cache.Cachepublic void put(Object key, Object value)
put in interface org.springframework.cache.Cachepublic org.springframework.cache.Cache.ValueWrapper putIfAbsent(Object key, Object value)
putIfAbsent in interface org.springframework.cache.CacheCopyright © 2011–2018 Aerospike Inc.. All rights reserved.