Compare commits

...

1 Commits

Author SHA1 Message Date
Bennett Buchanan 61523fc8e8 bugfix: ZENKO-1195 Add keys and del Redis commands 2018-10-31 13:34:24 -07:00
1 changed files with 20 additions and 0 deletions

View File

@ -44,6 +44,26 @@ class RedisClient {
});
}
/**
* Find keys matching with the given key pattern
* @param {String} key - The key pattern to match
* @param {Function} cb - The callback to call
* @return {undefined}
*/
keys(key, cb) {
return this._client.keys(key, cb);
}
/**
* Delete the given key
* @param {String} key - The key to delete
* @param {Function} cb - The callback to call
* @return {undefined}
*/
del(key, cb) {
return this._client.del(key, cb);
}
/**
* increment value of a key by 1 and set a ttl
* @param {string} key - key holding the value