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)| 限定符和类型 | 方法和说明 |
|---|---|
T |
call(MemcachedClient client) |
T call(MemcachedClient client) throws MemcachedException, InterruptedException, TimeoutException
Copyright © 2013. All Rights Reserved.