Releases: killme2008/xmemcached
Releases · killme2008/xmemcached
xmemcached 2.3.0
- AWS ElasticCache Auto Discovery.
- Fixed NPE in rescheduleConnectRequest #53
- Fixed typo in setConnectionPoolSize #52
Maven:
<!-- https://mvnrepository.com/artifact/com.googlecode.xmemcached/xmemcached -->
<dependency>
<groupId>com.googlecode.xmemcached</groupId>
<artifactId>xmemcached</artifactId>
<version>2.3.0</version>
</dependency>
xmemcached 2.2.1-beta
A beta release for #37 and PR #50
Use AWSElasticCacheClient
in AWS ElasticCache, for example:
import java.net.InetSocketAddress;
import net.rubyeye.xmemcached.aws.AWSElasticCacheClient;
import net.rubyeye.xmemcached.aws.ClusterConfigration;
import net.rubyeye.xmemcached.command.BinaryCommandFactory;
import net.rubyeye.xmemcached.command.TextCommandFactory;
public class Test {
public static void main(String args[]) throws Exception {
AWSElasticCacheClient client =
new AWSElasticCacheClient(new InetSocketAddress("AWS ElasticCache endpoint host", 11211));
ClusterConfigration conf = client.getConfig();
System.out.println(conf.toString());
client.set("a", 0, 1);
System.out.println((Object)client.get("a"));
}
}
It will auto discovery AWS ElasticCache nodes and connect to them for service, then refresh the nodes list in background between configured poll interval. (It is 1 hour by default).
Maven:
<dependency>
<groupId>com.googlecode.xmemcached</groupId>
<artifactId>xmemcached</artifactId>
<version>2.2.1-beta</version>
</dependency>
Any test and feedback is welcome!
2.2.0 Released
- Fixed some TimeoutException scenarios #30, highly recommend upgrading.
- Fixed session heartbeat failure counter
- Remove the helper classs for hibernate-memcached.
Maven:
<dependency>
<groupId>com.googlecode.xmemcached</groupId>
<artifactId>xmemcached</artifactId>
<version>2.2.0</version>
</dependency>
2.1.0 release note
- Tweak performance, especially binary protocol.
- Reduce memory and threads consumption on multicore system.
- Reconnection will do the server address DNS resolving, see issue #49 .
- Experiment option
-Dxmemcached.string.bytes.cached.enable
for caching string decoded bytes array, it's false by default.
xmemcached 2.0.1
Change log:
- Uses nano timestamp value as namespace.
- Adds
setSelectorPoolSize
method to builder/client to set reactor pool size per client. - Set heartbeat thread and session monitor thread to be daemon.
- Thanks to @bmahe, so much refactor and clean code.
- Disable shutdown hook by default, you can enable it by
-Dxmemcached.shutdown.hook.enable=true
. - Make log more friendly.
- Fixed auth for binary protocol.
- Some bug fix by contributors,thanks all of you.
xmemcached 2.0.0
Release note
- Performance tweaks,10% improved for text protocol in my benchmark.
- Fixed getStats could not work with
cache dump
,thanks to machao9email. - Fixed deak lock when shutdown client.
- Fixed missing unsigned conversion on ONE_AT_A_TIME hash, thanks to spudone.
- Cached decoded object for the same key in a batch get,reduce CPU consumption.
- Used
System.nanoTime
instead ofSystem.currentTimeInMills
to generate namespace timestamp.
Maven dependency
<dependency>
<groupId>com.googlecode.xmemcached</groupId>
<artifactId>xmemcached</artifactId>
<version>2.0.0</version>
</dependency>