public class AerospikeCacheManager extends AbstractTransactionSupportingCacheManager
CacheManager implementation for Aerospike. By default AerospikeCaches
will be lazily initialized for each getCache(String) request unless a set of
predefined cache names is provided. AbstractTransactionSupportingCacheManager.setTransactionAware(boolean) to true will force Caches to
be decorated as TransactionAwareCacheDecorator so values will only be written
to the cache after successful commit of surrounding transaction.| Modifier and Type | Class and Description |
|---|---|
class |
AerospikeCacheManager.AerospikeSerializingCache |
| Constructor and Description |
|---|
AerospikeCacheManager(com.aerospike.client.AerospikeClient aerospikeClient,
Collection<String> cacheNames,
MappingAerospikeConverter aerospikeConverter)
Create a new
AerospikeCacheManager instance with the specified caches and
with the set name "aerospike". |
AerospikeCacheManager(com.aerospike.client.AerospikeClient aerospikeClient,
Collection<String> cacheNames,
String setName,
MappingAerospikeConverter aerospikeConverter)
Create a new
AerospikeCacheManager instance with the specified caches and
with the specified set name. |
AerospikeCacheManager(com.aerospike.client.AerospikeClient aerospikeClient,
MappingAerospikeConverter aerospikeConverter)
Create a new
AerospikeCacheManager instance with no caches and with the
set name "aerospike". |
AerospikeCacheManager(com.aerospike.client.AerospikeClient aerospikeClient,
String setName,
MappingAerospikeConverter aerospikeConverter)
Create a new
AerospikeCacheManager instance with no caches and with the
specified set name. |
| Modifier and Type | Method and Description |
|---|---|
Cache |
getCache(String name) |
isTransactionAware, setTransactionAwareafterPropertiesSet, getCacheNames, initializeCachespublic AerospikeCacheManager(com.aerospike.client.AerospikeClient aerospikeClient,
MappingAerospikeConverter aerospikeConverter)
AerospikeCacheManager instance with no caches and with the
set name "aerospike".aerospikeClient - the AerospikeClient instance.aerospikeConverter - public AerospikeCacheManager(com.aerospike.client.AerospikeClient aerospikeClient,
String setName,
MappingAerospikeConverter aerospikeConverter)
AerospikeCacheManager instance with no caches and with the
specified set name.aerospikeClient - the AerospikeClient instance.setName - the set name.aerospikeConverter - public AerospikeCacheManager(com.aerospike.client.AerospikeClient aerospikeClient,
Collection<String> cacheNames,
MappingAerospikeConverter aerospikeConverter)
AerospikeCacheManager instance with the specified caches and
with the set name "aerospike".aerospikeClient - the AerospikeClient instance.cacheNames - the default caches to create.aerospikeConverter - public AerospikeCacheManager(com.aerospike.client.AerospikeClient aerospikeClient,
Collection<String> cacheNames,
String setName,
MappingAerospikeConverter aerospikeConverter)
AerospikeCacheManager instance with the specified caches and
with the specified set name.aerospikeClient - the AerospikeClient instance.cacheNames - the default caches to create.setName - the set name.aerospikeConverter - public Cache getCache(String name)
getCache in interface CacheManagergetCache in class AbstractCacheManagerCopyright © 2012–2020 Aerospike, Inc. All rights reserved.