SpymemcachedMemcached客户端
Spymemcached是一个采用Java开发的异步、单线程的Memcached客户端。
最简单的例子:
MemcachedClient c=new MemcachedClient(
new InetSocketAddress("hostname", portNum));
// Store a value (async) for one hour
c.set("someKey", 3600, someObject);
// Retrieve a value (synchronously).
Object myObject=c.get("someKey");
评论