Commit c6c3ac9f authored by Arnout Kazemier's avatar Arnout Kazemier

[minor] Add missing compatiblity options

parent b075d4a1
......@@ -59,7 +59,9 @@ function Client (args, options) {
Utils.merge(this, options);
this.servers = servers;
this.HashRing = new HashRing(args, this.algorithm);
this.HashRing = new HashRing(args, this.algorithm, {
compatiblity: this.compatiblity
});
this.connections = {};
this.issues = [];
}
......@@ -71,7 +73,8 @@ Client.config = {
, maxValue: 1048576 // max length of value allowed by Memcached
, activeQueries: 0
, maxQueueSize: -1
, algorithm: 'md5' // hashing algorithm that is used for key mapping
, algorithm: 'md5' // hashing algorithm that is used for key mapping
, compatiblity: 'ketama' // hashring compatiblity
, poolSize: 10 // maximal parallel connections
, retries: 5 // Connection pool retries to pull connection from pool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment