public XmemcachedClientFactory(PropertiesHelper properties) {
this.properties = properties;
}
public Memcache createMemcacheClient() throws Exception {
MemcachedClientBuilder builder = new XMemcachedClientBuilder(AddrUtil
.getAddresses(getServerList()));
builder.setCommandFactory(getCommandFactory());
builder.setSessionLocator(getSessionLocator());
builder.getConfiguration()
.setSessionReadBufferSize(getReadBufferSize());
builder.setConnectionPoolSize(getConnectionPoolSize());
builder.setConnectTimeout(getConnectTimeoutMillis());
MemcachedClient client = builder.build();
client.setOpTimeout(getOperationTimeoutMillis());
return new Xmemcache(client);
}