Memcached客户端 Spymemcached

jopen 13年前
     <p>Spymemcached是一个采用Java开发的异步、单线程的<a href="http://www.open-open.com/lib/view/open1322706513327.html" target="_blank">Memcached</a>客户端。</p>    <p>最简单的例子:</p>    <pre class="brush:java; toolbar: true; auto-links: false;">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");</pre>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1324812598530" target="_blank">http://www.open-open.com/lib/view/home/1324812598530</a></p>    <p></p>