public class AerospikeKeyValueAdapter
extends org.springframework.data.keyvalue.core.AbstractKeyValueAdapter
KeyValueAdapter to implement core sore interactions to be used by the
KeyValueTemplate.| Constructor and Description |
|---|
AerospikeKeyValueAdapter(com.aerospike.client.AerospikeClient client,
AerospikeConverter converter,
String namespace)
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
contains(Serializable id,
Serializable keyspace) |
long |
count(Serializable keyspace) |
Object |
delete(Serializable id,
Serializable keyspace) |
void |
deleteAllOf(Serializable keyspace) |
void |
destroy() |
CloseableIterator<Map.Entry<Serializable,Object>> |
entries(Serializable keyspace) |
Collection<?> |
find(org.springframework.data.keyvalue.core.query.KeyValueQuery<?> query,
Serializable keyspace) |
Object |
get(Serializable id,
Serializable keyspace) |
Collection<?> |
getAllOf(Serializable keyspace) |
Object |
put(Serializable id,
Object item,
Serializable keyspace) |
public AerospikeKeyValueAdapter(com.aerospike.client.AerospikeClient client,
AerospikeConverter converter,
String namespace)
client - must not be null.converter - must not be null.public Object put(Serializable id, Object item, Serializable keyspace)
public boolean contains(Serializable id, Serializable keyspace)
public Object get(Serializable id, Serializable keyspace)
public Object delete(Serializable id, Serializable keyspace)
public Collection<?> getAllOf(Serializable keyspace)
public void deleteAllOf(Serializable keyspace)
public void clear()
public Collection<?> find(org.springframework.data.keyvalue.core.query.KeyValueQuery<?> query, Serializable keyspace)
find in interface org.springframework.data.keyvalue.core.KeyValueAdapterfind in class org.springframework.data.keyvalue.core.AbstractKeyValueAdapterpublic CloseableIterator<Map.Entry<Serializable,Object>> entries(Serializable keyspace)
public long count(Serializable keyspace)
Copyright © 2011-2015–2017 Aerospike Inc.. All rights reserved.