- Redis Running on Port 6379
- Node JS v14
- Pull Repo
cd ioredis-test
npm i
DEBUG=* node index.js -d
--default / -d
- Initializes the Redis Client with the ioredis default config (blank)--exitOnMaxRetry / -e
- Initializes the Redis Client with a lowermaxRetriesPerRequest
Threshold, add's command exception handling to terminate process onmaxRetriesPerRequestError
--failFast / -f
- Initializes the Redis Client withenableOfflineQueue
set tofalse
andmaxRetriesPerRequest
to0
, instead of queuing up commands in the offline queue, exceptions will be thrown immediately at the command level. TheretryStrategy
function has been modified to kill the process after 100 attempts to reconnect (or X attempts when X is passed in via-r
).--iterations / -i
- how manyset
commands will be executed--maxConnectionRetries / -r
- how many times theretryStrategy
function