public class CouchbaseCache extends AbstractValueAdaptingCache
Cache.ValueRetrievalException, Cache.ValueWrapper| Modifier | Constructor and Description |
|---|---|
protected |
CouchbaseCache(String name,
CouchbaseCacheWriter cacheWriter,
CouchbaseCacheConfiguration cacheConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
protected String |
convertKey(Object key)
Convert
key to a String representation used for cache key creation. |
protected String |
createCacheKey(Object key)
Customization hook for creating cache key before it gets serialized.
|
void |
evict(Object key) |
boolean |
evictIfPresent(Object key) |
<T> T |
get(Object key,
Callable<T> valueLoader) |
CouchbaseCacheConfiguration |
getCacheConfiguration()
Returns the configuration for this
CouchbaseCache. |
String |
getName() |
CouchbaseCacheWriter |
getNativeCache() |
boolean |
invalidate() |
protected Object |
lookup(Object key) |
void |
put(Object key,
Object value) |
Cache.ValueWrapper |
putIfAbsent(Object key,
Object value) |
fromStoreValue, get, get, isAllowNullValues, toStoreValue, toValueWrapperprotected CouchbaseCache(String name, CouchbaseCacheWriter cacheWriter, CouchbaseCacheConfiguration cacheConfig)
public String getName()
public CouchbaseCacheWriter getNativeCache()
protected Object lookup(Object key)
lookup in class AbstractValueAdaptingCachepublic CouchbaseCacheConfiguration getCacheConfiguration()
CouchbaseCache.public Cache.ValueWrapper putIfAbsent(Object key, Object value)
public void evict(Object key)
public boolean evictIfPresent(Object key)
public boolean invalidate()
public void clear()
protected String createCacheKey(Object key)
key - will never be null.protected String convertKey(Object key)
key to a String representation used for cache key creation.key - will never be null.IllegalStateException - if key cannot be converted to String.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.