Skip to content

Commit 1c1c4ea

Browse files
author
Ruben Bridgewater
committed
Update readme about lower case commands
1 parent 4c6b843 commit 1c1c4ea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,9 @@ the second word as first parameter:
551551

552552
## client.send_command(command_name, args, callback)
553553

554-
Used internally to send commands to Redis. For convenience, nearly all commands that are published on the Redis
555-
Wiki have been added to the `client` object. However, if I missed any, or if new commands are introduced before
556-
this library is updated, you can use `send_command()` to send arbitrary commands to Redis.
554+
Used internally to send commands to Redis. Nearly all Redis commands have been added to the `client` object.
555+
However, if new commands are introduced before this library is updated, you can use `send_command()` to send arbitrary commands to Redis.
556+
The command has to be lower case.
557557

558558
All commands are sent as multi-bulk commands. `args` can either be an Array of arguments, or omitted.
559559

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ function Command(command, args, sub_command, buffer_args, callback) {
692692
}
693693

694694
RedisClient.prototype.send_command = function (command, args, callback) {
695-
var arg, command_obj, i, il, elem_count, buffer_args, stream = this.stream, command_str = "", buffered_writes = 0, last_arg_type, lcaseCommand;
695+
var arg, command_obj, i, il, elem_count, buffer_args, stream = this.stream, command_str = "", buffered_writes = 0, last_arg_type;
696696

697697
if (typeof command !== "string") {
698698
throw new Error("First argument to send_command must be the command name string, not " + typeof command);

0 commit comments

Comments
 (0)