Class MemcachedCache<V>
java.lang.Object
org.smallmind.persistence.cache.memcached.MemcachedCache<V>
- All Implemented Interfaces:
CASSupportingPersistenceCache<String,,V> PersistenceCache<String,V>
-
Constructor Summary
ConstructorsConstructorDescriptionMemcachedCache(ProxyMemcachedClient memcachedClient, String discriminator, Class<V> valueClass, int timeToLiveSeconds) -
Method Summary
Modifier and TypeMethodDescriptionintputIfAbsent(String key, V value, int timeToLiveSeconds) booleanvoidbooleanvoid
-
Constructor Details
-
MemcachedCache
public MemcachedCache(ProxyMemcachedClient memcachedClient, String discriminator, Class<V> valueClass, int timeToLiveSeconds)
-
-
Method Details
-
getMemcachedClient
-
requiresCopyOnDistributedCASOperation
public boolean requiresCopyOnDistributedCASOperation()- Specified by:
requiresCopyOnDistributedCASOperationin interfaceCASSupportingPersistenceCache<String,V>
-
getDefaultTimeToLiveSeconds
public int getDefaultTimeToLiveSeconds()- Specified by:
getDefaultTimeToLiveSecondsin interfacePersistenceCache<String,V>
-
get
- Specified by:
getin interfacePersistenceCache<String,V> - Throws:
CacheOperationException
-
get
- Specified by:
getin interfacePersistenceCache<String,V> - Throws:
CacheOperationException
-
set
- Specified by:
setin interfacePersistenceCache<String,V>
-
putIfAbsent
- Specified by:
putIfAbsentin interfacePersistenceCache<String,V>
-
getViaCas
- Specified by:
getViaCasin interfaceCASSupportingPersistenceCache<String,V>
-
putViaCas
- Specified by:
putViaCasin interfaceCASSupportingPersistenceCache<String,V>
-
remove
- Specified by:
removein interfacePersistenceCache<String,V>
-