T
- public interface MemcachedClientCallable<T>
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);
MemcachedClient.withNamespace(String, MemcachedClientCallable)
Modifier and Type | Method and Description |
---|---|
T |
call(MemcachedClient client) |
T call(MemcachedClient client) throws MemcachedException, InterruptedException, TimeoutException
Copyright © 2021. All rights reserved.