public class CouchbaseCacheManager extends AbstractCacheManager
CouchbaseCacheManager
orchestrates CouchbaseCache
instances.
Since more than one current CouchbaseClient
connection can be used for caching, the
CouchbaseCacheManager
orchestrates and handles them for the Spring Cache abstraction layer.Constructor and Description |
---|
CouchbaseCacheManager(HashMap<String,com.couchbase.client.CouchbaseClient> clients)
Construct a new CouchbaseCacheManager.
|
CouchbaseCacheManager(HashMap<String,com.couchbase.client.CouchbaseClient> clients,
HashMap<String,Integer> ttlConfiguration)
Construct a new CouchbaseCacheManager.
|
Modifier and Type | Method and Description |
---|---|
HashMap<String,com.couchbase.client.CouchbaseClient> |
getClients()
Returns a Map of all CouchbaseClients with name.
|
protected Collection<? extends Cache> |
loadCaches()
Populates all caches.
|
addCache, afterPropertiesSet, decorateCache, getCache, getCacheNames
public CouchbaseCacheManager(HashMap<String,com.couchbase.client.CouchbaseClient> clients)
clients
- one ore more CouchbaseClients to reference.public CouchbaseCacheManager(HashMap<String,com.couchbase.client.CouchbaseClient> clients, HashMap<String,Integer> ttlConfiguration)
clients
- one ore more CouchbaseClients to reference.ttlConfiguration
- one or more TTL values (in seconds)public final HashMap<String,com.couchbase.client.CouchbaseClient> getClients()
protected final Collection<? extends Cache> loadCaches()
loadCaches
in class AbstractCacheManager
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.