public class AerospikeCacheManager extends AbstractTransactionSupportingCacheManager
CacheManager implementation for Aerospike. By default AerospikeCaches
will be lazily initialized for each AbstractCacheManager.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.| Constructor and Description |
|---|
AerospikeCacheManager(com.aerospike.client.IAerospikeClient aerospikeClient,
AerospikeConverter aerospikeConverter,
AerospikeCacheConfiguration defaultCacheConfiguration)
Create a new
AerospikeCacheManager instance -
Specifying a default cache configuration. |
AerospikeCacheManager(com.aerospike.client.IAerospikeClient aerospikeClient,
AerospikeConverter aerospikeConverter,
AerospikeCacheConfiguration defaultCacheConfiguration,
Map<String,AerospikeCacheConfiguration> initialPerCacheConfiguration)
Create a new
AerospikeCacheManager instance -
Specifying a default cache configuration and a map of caches (cache names) and matching configurations. |
isTransactionAware, setTransactionAwareafterPropertiesSet, getCache, getCacheNames, initializeCachespublic AerospikeCacheManager(com.aerospike.client.IAerospikeClient aerospikeClient,
AerospikeConverter aerospikeConverter,
AerospikeCacheConfiguration defaultCacheConfiguration)
AerospikeCacheManager instance -
Specifying a default cache configuration.aerospikeClient - the instance that implements IAerospikeClient.aerospikeConverter - the instance that implements AerospikeConverter.defaultCacheConfiguration - the default cache configuration.public AerospikeCacheManager(com.aerospike.client.IAerospikeClient aerospikeClient,
AerospikeConverter aerospikeConverter,
AerospikeCacheConfiguration defaultCacheConfiguration,
Map<String,AerospikeCacheConfiguration> initialPerCacheConfiguration)
AerospikeCacheManager instance -
Specifying a default cache configuration and a map of caches (cache names) and matching configurations.aerospikeClient - the instance that implements IAerospikeClient.aerospikeConverter - the instance that implements AerospikeConverter.defaultCacheConfiguration - the default aerospike cache configuration.initialPerCacheConfiguration - a map of caches (cache names) and matching configurations.Copyright © 2020–2021 Aerospike, Inc. All rights reserved.