Permalink
Browse files

Regenerate commands.js to match redis 2.8.0. Adds support for 'config…

… rewrite', 'pubsub', 'scan', 'sscan', 'hscan' and 'zscan'
  • Loading branch information...
1 parent e9cd46a commit 656ecbbbf4b2d78b98bed19faa96aeb86d9b1828 @marekventur marekventur committed Dec 15, 2013
Showing with 8 additions and 2 deletions.
  1. +8 −2 lib/commands.js
View
@@ -1,4 +1,4 @@
-// This file was generated by ./generate_commands.js on Sun Feb 17 2013 19:04:47 GMT-0500 (EST)
+// This file was generated by ./generate_commands.js on Sun Dec 15 2013 15:58:20 GMT+0000 (GMT)
module.exports = [
"append",
"auth",
@@ -14,6 +14,7 @@ module.exports = [
"client getname",
"client setname",
"config get",
+ "config rewrite",
"config set",
"config resetstat",
"dbsize",
@@ -80,6 +81,7 @@ module.exports = [
"ping",
"psetex",
"psubscribe",
+ "pubsub",
"pttl",
"publish",
"punsubscribe",
@@ -145,5 +147,9 @@ module.exports = [
"zrevrangebyscore",
"zrevrank",
"zscore",
- "zunionstore"
+ "zunionstore",
+ "scan",
+ "sscan",
+ "hscan",
+ "zscan"
];

1 comment on commit 656ecbb

amark commented on 656ecbb Mar 20, 2014

How do I use the "config get" and "config set" commands?

var redis = require('redis'), client = redis.createClient();
console.log(client['config get']); // [Function]
client['config get']('maxmemory', redis.print); // Error: Error: ERR unknown command 'config get'

CORRECTION:

var redis = require('redis'), client = redis.createClient();
console.log(client.config); // [Function]
client.config('get','maxmemory', redis.print); // Reply: maxmemory,0

Sorry about that, thanks.

Please sign in to comment.