xmemcached发布1.3.3版本——支持touch和GAT
版本 发布 支持 1.3 touch
2023-09-11 14:16:09 时间
开源memcached的java客户端xmemcached发布1.3.3,主要改进如下:
1、memcached 1.6添加了不少新特性,具体可以参考《whats 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; 其中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 文章转自庄周梦蝶 ,原文发布时间 2011-06-12
版本通告|Apache Doris 0.15 Release 版本正式发布! 亲爱的社区小伙伴们,历时数个月精心打磨,我们很高兴地宣布, Apache Doris 于 2021 年 11 月 29 日迎来了 0.15.0 Release 版本的正式发布!有 99 位 Contributor 为 Apache Doris 提交了近 700 项优化和修复,在此我们也对所有贡献者表示最真诚的感激!
Excelize 发布 2.4.1 版本,新增并发安全支持 Excelize 是 Go 语言编写的用于操作 Office Excel 文档基础库,2021年8月2日,社区正式发布了 2.4.1 版本,该版本包含了多项新增功能、错误修复和兼容性提升优化,下面是有关该版本更新内容的摘要。
1、memcached 1.6添加了不少新特性,具体可以参考《whats 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; 其中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 文章转自庄周梦蝶 ,原文发布时间 2011-06-12
版本通告|Apache Doris 0.15 Release 版本正式发布! 亲爱的社区小伙伴们,历时数个月精心打磨,我们很高兴地宣布, Apache Doris 于 2021 年 11 月 29 日迎来了 0.15.0 Release 版本的正式发布!有 99 位 Contributor 为 Apache Doris 提交了近 700 项优化和修复,在此我们也对所有贡献者表示最真诚的感激!
Excelize 发布 2.4.1 版本,新增并发安全支持 Excelize 是 Go 语言编写的用于操作 Office Excel 文档基础库,2021年8月2日,社区正式发布了 2.4.1 版本,该版本包含了多项新增功能、错误修复和兼容性提升优化,下面是有关该版本更新内容的摘要。
相关文章
- SQL Server 各版本发布时间、开发代号及下载地址
- OpenKruise v0.7.0 版本发布:新增周期任务分发控制器
- 【大数据技术】操作系统和Hadoop版本选择
- [Android1.5]Android2.0版本以下Activity切换动画效果
- 赶在EW2020之前,FreeRTOS发布V10.3.0,将推出首个LTS版本
- 40. 如何制作包含了 component-preload.js 在内的 SAP UI5 发布版本
- 闪耀暖暖30年:leadtools21版本
- E-MapReduce 2.0.0 版本发布
- 微电网两阶段鲁棒优化经济调度方法[3]【升级优化版本】(Matlab代码实现)
- openGemini v0.2.0版本正式发布:5大特性全面增强
- Volcano社区v1.6.0版本正式发布
- VMware 最新版本 14 发布啦,此次更新了一个大版本!
- Apache Hive 3.x 版本的配置和部署
- Spring Cloud Tencent 1.7 版本发布
- 搭建LVGL V8版本PC VS2019仿真工程