Package net.rubyeye.xmemcached
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:
MemcachedClient.withNamespace(String, MemcachedClientCallable)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
call(MemcachedClient client)
-
-
-
Method Detail
-
call
T call(MemcachedClient client) throws MemcachedException, java.lang.InterruptedException, java.util.concurrent.TimeoutException
- Throws:
MemcachedException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
-
-