Send feedback
  
   
 
  
    
      Interface AsyncMemcacheService (2.0.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
    
    
    
    
      
  
  
  
    
public   interface  AsyncMemcacheService   extends   BaseMemcacheService  
  An asynchronous version of MemcacheService .  All methods return
 immediately and provide Futures  as their return values.
Methods
   
  <T>deleteAll(Collection<T> keys) 
  
    
public   abstract   Future<Set<T> >  <T>deleteAll ( Collection<T>   keys )  
  See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.
<T>deleteAll(Collection<T> keys, long millisNoReAdd) 
  
    
public   abstract   Future<Set<T> >  <T>deleteAll ( Collection<T>   keys ,   long   millisNoReAdd )  
  See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.
<T>getAll(Collection<T> keys) 
  
    
public   abstract   Future<Map<T , Object >>  <T>getAll ( Collection<T>   keys )  
  See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.
<T>getIdentifiables(Collection<T> keys) 
  
    
public   abstract   Future<Map<T , MemcacheService . IdentifiableValue >>  <T>getIdentifiables ( Collection<T>   keys )  
  See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.
<T>getItemsForPeek(Collection<T> keys) 
  
    
public   abstract   Future<Map<T , MemcacheService . ItemForPeek >>  <T>getItemsForPeek ( Collection<T>   keys )  
  See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.
<T>incrementAll(Collection<T> keys, long delta) 
  
    
public   abstract   Future<Map<T , Long >>  <T>incrementAll ( Collection<T>   keys ,   long   delta )  
  See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.
<T>incrementAll(Collection<T> keys, long delta, Long initialValue) 
  
    
public   abstract   Future<Map<T , Long >>  <T>incrementAll ( Collection<T>   keys ,   long   delta ,   Long   initialValue )  
  See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.
<T>incrementAll(Map<T,Long> offsets) 
  
    
public   abstract   Future<Map<T , Long >>  <T>incrementAll ( Map<T , Long >  offsets )  
  See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.
    
      
        Parameter  
      
        Name Description  
      
        offsetsMap <T ,Long > 
     
  
  
  <T>incrementAll(Map<T,Long> offsets, Long initialValue) 
  
    
public   abstract   Future<Map<T , Long >>  <T>incrementAll ( Map<T , Long >  offsets ,   Long   initialValue )  
  See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.
    
      
        Parameters  
      
        Name Description  
      
        offsetsMap <T ,Long > 
      
        initialValueLong  
     
  
  
  <T>putAll(Map<T,?> values, Expiration expires, MemcacheService.SetPolicy policy) 
  
    
public   abstract   Future<Set<T> >  <T>putAll ( Map<T , ? >  values ,   Expiration   expires ,   MemcacheService . SetPolicy   policy )  
  
  
  
  <T>putIfUntouched(Map<T,MemcacheService.CasValues> values) 
  
    
public   abstract   Future<Set<T> >  <T>putIfUntouched ( Map<T , MemcacheService . CasValues >  values )  
  See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.
<T>putIfUntouched(Map<T,MemcacheService.CasValues> values, Expiration expiration) 
  
    
public   abstract   Future<Set<T> >  <T>putIfUntouched ( Map<T , MemcacheService . CasValues >  values ,   Expiration   expiration )  
  See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.
clearAll() 
  
    
public   abstract   Future<Void>   clearAll ()  
  
  
  contains(Object key) 
  
    
public   abstract   Future<Boolean>   contains ( Object   key )  
  
  
    
      
        Parameter  
      
        Name Description  
      
        keyObject  
     
  
  
  delete(Object key) 
  
    
public   abstract   Future<Boolean>   delete ( Object   key )  
  
  
    
      
        Parameter  
      
        Name Description  
      
        keyObject  
     
  
  
  delete(Object key, long millisNoReAdd) 
  
    
public   abstract   Future<Boolean>   delete ( Object   key ,   long   millisNoReAdd )  
  
  
    
      
        Parameters  
      
        Name Description  
      
        keyObject  
      
        millisNoReAddlong  
     
  
  
  get(Object key) 
  
    
public   abstract   Future<Object>   get ( Object   key )  
  
  
    
      
        Parameter  
      
        Name Description  
      
        keyObject  
     
  
  
  getIdentifiable(Object key) 
  
    
public   abstract   Future<MemcacheService . IdentifiableValue >  getIdentifiable ( Object   key )  
  
  
    
      
        Parameter  
      
        Name Description  
      
        keyObject  
     
  
  
  getItemForPeek(Object key) 
  
    
public   abstract   Future<MemcacheService . ItemForPeek >  getItemForPeek ( Object   key )  
  
  
    
      
        Parameter  
      
        Name Description  
      
        keyObject  
     
  
  
  getStatistics() 
  
    
public   abstract   Future<Stats>   getStatistics ()  
  
  
  increment(Object key, long delta) 
  
    
public   abstract   Future<Long>   increment ( Object   key ,   long   delta )  
  
  
  
  increment(Object key, long delta, Long initialValue) 
  
    
public   abstract   Future<Long>   increment ( Object   key ,   long   delta ,   Long   initialValue )  
  
  
  
  put(Object key, Object value) 
  
    
public   abstract   Future<Void>   put ( Object   key ,   Object   value )  
  
  
  
  put(Object key, Object value, Expiration expires) 
  
    
public   abstract   Future<Void>   put ( Object   key ,   Object   value ,   Expiration   expires )  
  
  
  
  put(Object key, Object value, Expiration expires, MemcacheService.SetPolicy policy) 
  
    
public   abstract   Future<Boolean>   put ( Object   key ,   Object   value ,   Expiration   expires ,   MemcacheService . SetPolicy   policy )  
  
  
  
  putAll(Map<?,?> values) 
  
    
public   abstract   Future<Void>   putAll ( Map <? , ? >  values )  
  
  
    
      
        Parameter  
      
        Name Description  
      
        valuesMap <? ,? > 
     
  
  
  putAll(Map<?,?> values, Expiration expires) 
  
    
public   abstract   Future<Void>   putAll ( Map <? , ? >  values ,   Expiration   expires )  
  
  
  
  putIfUntouched(Object key, MemcacheService.IdentifiableValue oldValue, Object newValue) 
  
    
public   abstract   Future<Boolean>   putIfUntouched ( Object   key ,   MemcacheService . IdentifiableValue   oldValue ,   Object   newValue )  
  
  
  
  putIfUntouched(Object key, MemcacheService.IdentifiableValue oldValue, Object newValue, Expiration expires) 
  
    
public   abstract   Future<Boolean>   putIfUntouched ( Object   key ,   MemcacheService . IdentifiableValue   oldValue ,   Object   newValue ,   Expiration   expires )  
  See Also: MemcacheService#putIfUntouched(Object, IdentifiableValue, Object,
                                        Expiration) 
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-16 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-16 UTC."],[],[]]