Whether or not to resend unfulfilled commands on reconnect.
Unfulfilled commands are most likely to be blocking commands such as brpop
or blpop
.
Set the name of the connection to make it easier to identity the connection in client list.
Enable/disable keep-alive functionality.
Enable/disable the use of Nagle's algorithm.
Whether or not to reconnect on certain Redis errors.
This options by default is null
, which means it should never reconnect on Redis errors.
You can pass a function that accepts an Redis error, and returns:
true
or 1
to trigger a reconnection.false
or 0
to not reconnect.2
to reconnect and resend the failed command (who triggered the error) after reconnection.When enabled, numbers returned by Redis will be converted to JavaScript strings instead of numbers.
This is necessary if you want to handle big numbers (above Number.MAX_SAFE_INTEGER
=== 2^53).
Generated using TypeDoc
[]