9951 explained code solutions for 126 technologies


python-redisUsing retry_on_timeout in Redis


r = redis.Redis(retry_on_timeout=True)ctrl + c
redis.Redis

connect to Redis server

retry_on_timeout

will ask python to retry commands once if timeout error occurs