Class SpymemcachedLevel2Cache
- java.lang.Object
-
- org.datanucleus.cache.AbstractLevel2Cache
-
- org.datanucleus.cache.spymemcached.SpymemcachedLevel2Cache
-
- All Implemented Interfaces:
Serializable,org.datanucleus.cache.Level2Cache
public class SpymemcachedLevel2Cache extends org.datanucleus.cache.AbstractLevel2CachePlugin using Spymemcached implementation of "memcached" as a Level2 cache. We use the "cacheName" as the keyPrefix to distinguish our objects from others in memcached.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpymemcachedLevel2Cache(org.datanucleus.NucleusContext nucleusCtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleancontainsOid(Object oid)voidevict(Object oid)voidevictAll()voidevictAll(Class arg0, boolean arg1)voidevictAll(Object[] oids)voidevictAll(Collection oids)org.datanucleus.cache.CachedPCget(Object oid)protected StringgetCacheKeyForId(Object id)org.datanucleus.cache.CachedPCput(Object oid, org.datanucleus.cache.CachedPC pc)
-
-
-
Method Detail
-
close
public void close()
-
containsOid
public boolean containsOid(Object oid)
-
evict
public void evict(Object oid)
-
evictAll
public void evictAll()
-
evictAll
public void evictAll(Object[] oids)
-
evictAll
public void evictAll(Collection oids)
-
evictAll
public void evictAll(Class arg0, boolean arg1)
-
get
public org.datanucleus.cache.CachedPC get(Object oid)
-
put
public org.datanucleus.cache.CachedPC put(Object oid, org.datanucleus.cache.CachedPC pc)
-
-