Skip to content

Commit

Permalink
Add support for Sets. Fixes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Asuza committed Aug 2, 2017
1 parent 2277af8 commit 1043b48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ Client.prototype.gauge = function(bucket, value) {
this.send(bucket, value + "|g");
};

Client.prototype.set = function(bucket, value) {
this.send(bucket, value + "|s");
};

Client.prototype.send = function(bucket, value) {

var buffer = new Buffer(bucket + ":" + value);
Expand Down

0 comments on commit 1043b48

Please sign in to comment.