You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
Don't expose internal variables
This commit is contained in:
15
README.md
15
README.md
@@ -613,27 +613,16 @@ All commands are sent as multi-bulk commands. `args` can either be an Array of a
|
|||||||
|
|
||||||
Boolean tracking the state of the connection to the Redis server.
|
Boolean tracking the state of the connection to the Redis server.
|
||||||
|
|
||||||
## client.command_queue.length
|
## client.command_queue_length
|
||||||
|
|
||||||
The number of commands that have been sent to the Redis server but not yet replied to. You can use this to
|
The number of commands that have been sent to the Redis server but not yet replied to. You can use this to
|
||||||
enforce some kind of maximum queue depth for commands while connected.
|
enforce some kind of maximum queue depth for commands while connected.
|
||||||
|
|
||||||
Don't mess with `client.command_queue` though unless you really know what you are doing.
|
## client.offline_queue_length
|
||||||
|
|
||||||
## client.offline_queue.length
|
|
||||||
|
|
||||||
The number of commands that have been queued up for a future connection. You can use this to enforce
|
The number of commands that have been queued up for a future connection. You can use this to enforce
|
||||||
some kind of maximum queue depth for pre-connection commands.
|
some kind of maximum queue depth for pre-connection commands.
|
||||||
|
|
||||||
## client.retry_delay
|
|
||||||
|
|
||||||
Current delay in milliseconds before a connection retry will be attempted. This starts at `200`.
|
|
||||||
|
|
||||||
## client.retry_backoff
|
|
||||||
|
|
||||||
Multiplier for future retry timeouts. This should be larger than 1 to add more time between retries.
|
|
||||||
Defaults to 1.7. The default initial connection retry is 200, so the second retry will be 340, followed by 578, etc.
|
|
||||||
|
|
||||||
### Commands with Optional and Keyword arguments
|
### Commands with Optional and Keyword arguments
|
||||||
|
|
||||||
This applies to anything that uses an optional `[WITHSCORES]` or `[LIMIT offset count]` in the [redis.io/commands](http://redis.io/commands) documentation.
|
This applies to anything that uses an optional `[WITHSCORES]` or `[LIMIT offset count]` in the [redis.io/commands](http://redis.io/commands) documentation.
|
||||||
|
Reference in New Issue
Block a user