Skip to content

Commit

Permalink
Merge pull request #208 from rcoup/libmemcached-compat
Browse files Browse the repository at this point in the history
Improve libmemcached compatibility.
  • Loading branch information
3rd-Eden committed Sep 22, 2014
2 parents d5e944f + 0b11411 commit d99a5a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/memcached.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ function Client (args, options) {
Utils.merge(this, options);

this.servers = servers;
var compatibility = this.compatibility || this.compatiblity;
this.HashRing = new HashRing(args, this.algorithm, {
compatibility: this.compatibility || this.compatiblity
compatibility: compatibility,
default_port: (compatibility == 'ketama') ? 11211 : null
});
this.connections = {};
this.issues = [];
Expand Down

0 comments on commit d99a5a2

Please sign in to comment.