Package com.googlecode.objectify.cache
Class KeyMemcacheService
java.lang.Object
com.googlecode.objectify.cache.KeyMemcacheService
public class KeyMemcacheService extends Object
Subset of MemcacheService used by EntityMemcache, but smart enough to translate Key into the stringified
version so that the memcache keys are intelligible. Also guards against calling through to the underlying
service when the operation is a no-op (ie, the collection of keys to operate on is empty).
- Author:
- Jeff Schnitzer
-
Constructor Summary
ConstructorDescriptionKeyMemcacheService(com.google.appengine.api.memcache.MemcacheService service)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAll(Collection<com.google.appengine.api.datastore.Key> keys)
getAll(Collection<com.google.appengine.api.datastore.Key> keys)
Map<com.google.appengine.api.datastore.Key,com.google.appengine.api.memcache.MemcacheService.IdentifiableValue>
getIdentifiables(Collection<com.google.appengine.api.datastore.Key> keys)
void
Set<com.google.appengine.api.datastore.Key>
putIfUntouched(Map<com.google.appengine.api.datastore.Key,com.google.appengine.api.memcache.MemcacheService.CasValues> map)
void
setErrorHandler(com.google.appengine.api.memcache.ErrorHandler handler)
-
Constructor Details
-
KeyMemcacheService
public KeyMemcacheService(com.google.appengine.api.memcache.MemcacheService service)
-
-
Method Details
-
getIdentifiables
public Map<com.google.appengine.api.datastore.Key,com.google.appengine.api.memcache.MemcacheService.IdentifiableValue> getIdentifiables(Collection<com.google.appengine.api.datastore.Key> keys) -
getAll
public Map<com.google.appengine.api.datastore.Key,Object> getAll(Collection<com.google.appengine.api.datastore.Key> keys) -
putAll
-
putIfUntouched
-
deleteAll
-
setErrorHandler
public void setErrorHandler(com.google.appengine.api.memcache.ErrorHandler handler)
-