The documentation for Client.prototype.get states:
// The callback signature is:
//
// callback(err, value, flags)
but the code contains the following:
if(callback === undefined) {
return promisify(function(callback) {
self.get(key, function(err, value, flags) {
callback(err, {value: value, flags: flags});
});
});
}
Changing this to
if(callback === undefined) {
return promisify(function(callback) {
self.get(key, callback)
});
}
would fix this issue.
The documentation for
Client.prototype.getstates:but the code contains the following:
Changing this to
would fix this issue.