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(Object id,
String keyspace) |
long |
count(String keyspace) |
Object |
delete(Object id,
String keyspace) |
void |
deleteAllOf(String keyspace) |
void |
destroy() |
CloseableIterator<Map.Entry<Object,Object>> |
entries(String keyspace) |
Collection<?> |
find(org.springframework.data.keyvalue.core.query.KeyValueQuery<?> query,
String keyspace) |
Object |
get(Object id,
String keyspace) |
Collection<?> |
getAllOf(String keyspace) |
Object |
put(Object id,
Object item,
String keyspace) |
public AerospikeKeyValueAdapter(com.aerospike.client.AerospikeClient client,
AerospikeConverter converter,
String namespace)
client - must not be null.converter - must not be null.public Collection<?> getAllOf(String keyspace)
public void deleteAllOf(String keyspace)
public void clear()
public Collection<?> find(org.springframework.data.keyvalue.core.query.KeyValueQuery<?> query, String keyspace)
find in interface org.springframework.data.keyvalue.core.KeyValueAdapterfind in class org.springframework.data.keyvalue.core.AbstractKeyValueAdapterpublic CloseableIterator<Map.Entry<Object,Object>> entries(String keyspace)
public long count(String keyspace)
Copyright © 2012–2020 Aerospike, Inc. All rights reserved.