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

    Constructors
    Constructor
    Description
    KeyMemcacheService​(com.google.appengine.api.memcache.MemcacheService service)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteAll​(Collection<com.google.appengine.api.datastore.Key> keys)
     
    Map<com.google.appengine.api.datastore.Key,​Object>
    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
    putAll​(Map<com.google.appengine.api.datastore.Key,​Object> map)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void putAll(Map<com.google.appengine.api.datastore.Key,​Object> map)
    • putIfUntouched

      public Set<com.google.appengine.api.datastore.Key> putIfUntouched(Map<com.google.appengine.api.datastore.Key,​com.google.appengine.api.memcache.MemcacheService.CasValues> map)
    • deleteAll

      public void deleteAll(Collection<com.google.appengine.api.datastore.Key> keys)
    • setErrorHandler

      public void setErrorHandler(com.google.appengine.api.memcache.ErrorHandler handler)