Cache.ValueRetrievalException, Cache.ValueWrapper
Constructor and Description |
---|
SimpleSpringMemcached(net.spy.memcached.MemcachedClientIF memcachedClientIF,
String cacheName) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
evict(Object key) |
Cache.ValueWrapper |
get(Object key) |
<T> T |
get(Object key,
Callable<T> valueLoader) |
<T> T |
get(Object key,
Class<T> type) |
String |
getName() |
Object |
getNativeCache() |
void |
put(Object key,
Object value) |
Cache.ValueWrapper |
putIfAbsent(Object key,
Object value)
IMPORTANT: This operation is not atomic as the underlying implementation
(memcached) does not provide a way to do it.
|
void |
setExpiration(int expiration) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evictIfPresent, invalidate
public SimpleSpringMemcached(net.spy.memcached.MemcachedClientIF memcachedClientIF, String cacheName)
public Object getNativeCache()
getNativeCache
in interface Cache
public Cache.ValueWrapper get(Object key)
public Cache.ValueWrapper putIfAbsent(Object key, Object value)
putIfAbsent
in interface Cache
public void setExpiration(int expiration)
Copyright © 2023 Pivotal Software, Inc.. All rights reserved.