xmemcached发布1.3.3版本——支持touch和GAT
2023-03-14 22:29:17 时间
开源memcached的java客户端xmemcached发布1.3.3,主要改进如下:
1、memcached 1.6添加了不少新特性,具体可以参考《what's new in memcached》(1) (2)这两个帖子。xmemcached将及时跟进这些新特性。1.3.3这个版本实现了二进制协议中新的两个命令touch和GAT(get and touch)。这两个功能可以说是千呼万唤始出来,终于可以不用get-set来重新设置数据的超时时间,利用touch或者GAT可以简单地更新数据的超时时间。1.3.3新增加四个方法:
其中touch用于设置数据新的超时时间,getAndTouch则是在获取数据的同时更新超时时间。例如用memcached存储session,可以在每次get的时候更新下数据的超时时间来保活。请注意,这四个方法仅在使用memcached 1.6并且使用二进制协议的时候有效。
2、setLoggingLevelVerbosity方法可以作用于二进制协议。
3、重构错误处理模块,使得异常信息更友好。
4、将KeyIterator和getKeyIterator声明为deprecated,因为memached 1.6将移除stats cachedump协议,并且stats cachedump返回数据有大小限制,遍历功能不具实用性。
5、修复Bug,包括issue 126 ,issue 127,issue 128,issue 129。
下载地址:http://code.google.com/p/xmemcached/downloads/list
源码: https://github.com/killme2008/xmemcached
maven引用:
1、memcached 1.6添加了不少新特性,具体可以参考《what's new in memcached》(1) (2)这两个帖子。xmemcached将及时跟进这些新特性。1.3.3这个版本实现了二进制协议中新的两个命令touch和GAT(get and touch)。这两个功能可以说是千呼万唤始出来,终于可以不用get-set来重新设置数据的超时时间,利用touch或者GAT可以简单地更新数据的超时时间。1.3.3新增加四个方法:
public boolean touch(final String key, int exp, long opTimeout)
throws TimeoutException, InterruptedException, MemcachedException;
public boolean touch(final String key, int exp) throws TimeoutException,
InterruptedException, MemcachedException;
public <T> T getAndTouch(final String key, int newExp, long opTimeout)
throws TimeoutException, InterruptedException, MemcachedException;
public <T> T getAndTouch(final String key, int newExp)
throws TimeoutException, InterruptedException, MemcachedException;
throws TimeoutException, InterruptedException, MemcachedException;
public boolean touch(final String key, int exp) throws TimeoutException,
InterruptedException, MemcachedException;
public <T> T getAndTouch(final String key, int newExp, long opTimeout)
throws TimeoutException, InterruptedException, MemcachedException;
public <T> T getAndTouch(final String key, int newExp)
throws TimeoutException, InterruptedException, MemcachedException;
其中touch用于设置数据新的超时时间,getAndTouch则是在获取数据的同时更新超时时间。例如用memcached存储session,可以在每次get的时候更新下数据的超时时间来保活。请注意,这四个方法仅在使用memcached 1.6并且使用二进制协议的时候有效。
2、setLoggingLevelVerbosity方法可以作用于二进制协议。
3、重构错误处理模块,使得异常信息更友好。
4、将KeyIterator和getKeyIterator声明为deprecated,因为memached 1.6将移除stats cachedump协议,并且stats cachedump返回数据有大小限制,遍历功能不具实用性。
5、修复Bug,包括issue 126 ,issue 127,issue 128,issue 129。
下载地址:http://code.google.com/p/xmemcached/downloads/list
源码: https://github.com/killme2008/xmemcached
maven引用:
<dependency>
<groupId>com.googlecode.xmemcached</groupId>
<artifactId>xmemcached</artifactId>
<version>1.3.3</version>
</dependency>
<groupId>com.googlecode.xmemcached</groupId>
<artifactId>xmemcached</artifactId>
<version>1.3.3</version>
</dependency>
文章转自庄周梦蝶 ,原文发布时间 2011-06-12
相关文章
- 科学家无法涉足的“黑暗世界”,被雪藏的军用数据等待新生
- 用大数据填报高考志愿,靠谱吗?
- 这四款大数据可视化工具不得不看
- 大数据平台常见开源工具集锦,看看你都知道哪些
- 大数据计算框架Spark之内存模型
- 能够简化数据科学的6种工具
- 数读 | 中国哪里的地铁很拥挤
- Hadoop之父:普通程序员到顶级公司CTO的进阶之路
- 基于Spark的数据分析实践
- 万亿数据下 Hadoop 的核心竞争力
- 大数据告诉你80、90后的真实负债
- 联通大数据周华:用数据科技产品赋能产业发展
- 2019,Java码农还有必要转型大数据开发吗?
- 大数据是未来金融专业人士必备的技能吗?
- Pandas必备技能之“时间序列数据处理”
- 你是怎样“被平均”的?细数统计数据中的那些坑
- 17 款可视化工具,让你的数据更美观!
- 应对大规模数据集群治理,联通大数据这么做
- 一边吃粽子,一边思考流量数据分析!
- 活用这23种图表,让你的数据分析胜人一筹