使用 memcache java 客户端示例

memcache java 客户端 api。地址:http://www.danga.com/memcached/apis.bml  ,

有种客户端,我这使用 Dustin Sallings 版的(已经在 google code 了http://code.google.com/p/spymemcached/)。
spymemcached 的下载地址:http://spymemcached.googlecode.com/files/memcached-2.2.jar  

它依赖 spy.jar,spy.jar的下载地址:http://bleu.west.spy.net/~dustin/repo/spy/jars/spy-2.4.jar
把两个jar放到classpath下,然后写代码试用下:写入

 

你可能感兴趣的:(java,.net,memcached,Google)