标签:memcached
<span style="font-family: tahoma, 宋体; background-color: rgb(250, 250, 252);">Memcached Java API基础之MemcachedClient</span>
<span style="font-family:Microsoft YaHei;font-size:14px;"> public MemcachedClient(InetSocketAddress[] ia) throws IOException; </span>
<span style="font-family:Microsoft YaHei;font-size:14px;">public MemcachedClient(List<InetSocketAddress> addrs) throws IOException; </span>
<span style="font-family:Microsoft YaHei;font-size:14px;"> public MemcachedClient(ConnectionFactory cf, List<InetSocketAddress> addrs) throws IOException;</span>其中最简单的构造函数就是第一个,可以直接传递一个InetSocketAddress,也可以使用InetSocketAddress的数组。其实InetSocketAddress也是被转换成数组的。
<span style="font-family:Microsoft YaHei;font-size:14px;">MemcachedClient cache = new MemcachedClient(new InetSocketAddress("127.0.0.1", 11211)); </span>
<span style="font-family:Microsoft YaHei;">public Future<Boolean> set(String, int exp, Object o)</span>第一个参数:键(key)
标签:memcached
原文地址:http://blog.csdn.net/u010923921/article/details/45458307