Interface MemcachedClientCallable<T>

Type Parameters:
T -

public interface MemcachedClientCallable<T>
MemcachedClient callable when using namespace in xmemcached.For example:
   memcachedClient.withNamespace(userId,new MemcachedClientCallable{
     public Void call(MemcachedClient client) throws MemcachedException,
                        InterruptedException, TimeoutException{
      client.set("username",0,username);
      client.set("email",0,email);
      return null;
     }
   }); 
   //invalidate all items under the namespace.
   memcachedClient.invalidateNamespace(userId);
 
Since:
1.4.2
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description