如何使用memcached-Client端?(Java版是这样的,参看http://www.whalin.com/memcached/#download) String serverStr = "218.241.154.12:12321"; String[] serverlist = {serverStr}; //String[] serverlist = { "cache0.server.com:12345", "cache1.server.com:12345" }; //Integer[] weights = { new Integer(5), new Integer(2) }; int initialConnections = 100; int minSpareConnections = 50; int maxSpareConnections = 500; long maxIdleTime = 1000 * 60 * 30; // 30 minutes long maxBusyTime = 1000 * 60 * 5; // 5 minutes long maintThreadSleep = 1000 * 5; // 5 seconds int socketTimeOut = 1000 * 3; // 3 seconds to block on reads //int
socketConnectTO = 1000 * 3; // 3 seconds to block on initial
connections. If 0, then will use blocking connect (default) //boolean failover = false; // turn off auto-failover in event of server down boolean nagleAlg = false; // turn off Nagle's algorithm on all sockets in pool //boolean aliveCheck = false; // disable health check of socket on checkout