public class SimpleSpringMemcached extends Object implements org.springframework.cache.Cache
| Constructor and Description |
|---|
SimpleSpringMemcached(net.spy.memcached.MemcachedClientIF memcachedClientIF,
String cacheName) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
evict(Object key) |
org.springframework.cache.Cache.ValueWrapper |
get(Object key) |
<T> T |
get(Object key,
Class<T> type) |
String |
getName() |
Object |
getNativeCache() |
void |
put(Object key,
Object value) |
org.springframework.cache.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) |
public SimpleSpringMemcached(net.spy.memcached.MemcachedClientIF memcachedClientIF,
String cacheName)
public String getName()
getName in interface org.springframework.cache.Cachepublic Object getNativeCache()
getNativeCache in interface org.springframework.cache.Cachepublic org.springframework.cache.Cache.ValueWrapper get(Object key)
get in interface org.springframework.cache.Cachepublic <T> T get(Object key, Class<T> type)
get in interface org.springframework.cache.Cachepublic void put(Object key, Object value)
put in interface org.springframework.cache.Cachepublic org.springframework.cache.Cache.ValueWrapper putIfAbsent(Object key, Object value)
putIfAbsent in interface org.springframework.cache.Cachepublic void evict(Object key)
evict in interface org.springframework.cache.Cachepublic void clear()
clear in interface org.springframework.cache.Cachepublic void setExpiration(int expiration)
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.