Skip to content

Commit

Permalink
Regenerate commands.js to match redis 2.8.0. Adds support for 'config…
Browse files Browse the repository at this point in the history
… rewrite', 'pubsub', 'scan', 'sscan', 'hscan' and 'zscan'
  • Loading branch information
marekventur committed Dec 15, 2013
1 parent e9cd46a commit 656ecbb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/commands.js
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -14,6 +14,7 @@ module.exports = [
"client getname",
"client setname",
"config get",
"config rewrite",
"config set",
"config resetstat",
"dbsize",
Expand Down Expand Up @@ -80,6 +81,7 @@ module.exports = [
"ping",
"psetex",
"psubscribe",
"pubsub",
"pttl",
"publish",
"punsubscribe",
Expand Down Expand Up @@ -145,5 +147,9 @@ module.exports = [
"zrevrangebyscore",
"zrevrank",
"zscore",
"zunionstore"
"zunionstore",
"scan",
"sscan",
"hscan",
"zscan"
];

1 comment on commit 656ecbb

@amark
Copy link

@amark amark commented on 656ecbb Mar 20, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.