我确实是新鲜的。 我刚刚在java测试了 me子。 支尔瓦班成功建造,但一经管理,就永远不会停止。
使用的代码一是......。
public class NewMem {
public static void main(String[] args) throws IOException, URISyntaxException{
try {
MemcachedClient client = new MemcachedClient(new InetSocketAddress("localhost", 11211));
} catch (IOException e) {
e.printStackTrace();
System.err.println("connection problem");
}
}
}
守则一经实施,我就停下来。
init:
deps-jar:
compile-single:
run-single:
2011-11-21 12:15:58.328 INFO net.spy.memcached.MemcachedConnection: Added {QA sa=/localhost:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2011-11-21 12:15:58.328 INFO net.spy.memcached.MemcachedConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@1c5c1