Skip to content

Commit

Permalink
Merge pull request #1277 from dcharbonnier/patch-1
Browse files Browse the repository at this point in the history
document camel-case commands
  • Loading branch information
gkorland committed Mar 4, 2021
2 parents c78b6d5 + 055f5c5 commit 685a72d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -847,19 +847,19 @@ non-blocking ones may be queued up until after the blocking ones finish.
Another reason to use duplicate() is when multiple DBs on the same server are
accessed via the redis SELECT command. Each DB could use its own connection.

### `client.send_command(command_name[, [args][, callback]])`
### `client.sendCommand(command_name[, [args][, callback]])`

All Redis commands have been added to the `client` object. However, if new
commands are introduced before this library is updated or if you want to add
individual commands you can use `send_command()` to send arbitrary commands to
individual commands you can use `sendCommand()` to send arbitrary commands to
Redis.

All commands are sent as multi-bulk commands. `args` can either be an Array of
arguments, or omitted / set to undefined.

### `redis.add_command(command_name)`
### `redis.addCommand(command_name)`

Calling add_command will add a new command to the prototype. The exact command
Calling addCommand will add a new command to the prototype. The exact command
name will be used when calling using this new command. Using arbitrary arguments
is possible as with any other command.

Expand Down

0 comments on commit 685a72d

Please sign in to comment.