Enough reconnection retry before flushing out offline queue

I came across the scenario where under heavy traffic or due to some connection issue, got redis connection error and redis command just fails with error. Instead I think it should have an option to retry enough before error out the command.