retry-redis
Redis Clieht with customizable retrying capability.
Why did I build this?
There are Redis exceptions like below that can be handled by simply retrying it.
This package is built in order to help people who need to solve same problem.
redis.exceptions.ConnectionError
redis.exceptions.ResponseError
redis.exceptions.TimeoutError
Who should use?
Anybody who wants to have retry logic with Redis.
How to Install
pip install retry-redis
How To Use
Simply import retry decorated Redis and Use it.
import logging
from retry_redis import Redis
logging.basicConfig(level=logging.DEBUG)
r = Redis(port=6666)
r.lpush('list:test', 1)
# This log will be printed.
# DEBUG:retry_redis.decorated_redis:Finished call to 'redis.client.Redis.lpush' after 0.002(s), this was the 1st time calling it.
# DEBUG:retry_redis.decorated_redis:Finished call to 'redis.client.Redis.lpush' after 2.005(s), this was the 2nd time calling it.
# DEBUG:retry_redis.decorated_redis:Finished call to 'redis.client.Redis.lpush' after 6.009(s), this was the 3rd time calling it.
Package Dependency
redis
tenacity
Metadata
Release files for retry-redis 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| retry-redis-1.3.1.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| retry_redis-1.3.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 21.0 kB
Release files / retry-redis-1.3.1.tar.gz
| Download URL | retry-redis-1.3.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7fc79546a178098a4e9c1df541c466bede0aeebe93e21ba53d8aca880ae6fe0
|
|
BLAKE2b-256 checksum How to use checksums |
51a7a60088439eb7239ded003178e0ebcf630df5097913db329ffc21d3ed7731
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Release files / retry_redis-1.3.1-py2.py3-none-any.whl
| Download URL | retry_redis-1.3.1-py2.py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3e589fbba34b6c3ad9fe884f10b486a2d608d5bd31740e50d456b697c89076b1
|
|
BLAKE2b-256 checksum How to use checksums |
1fa23d45e100856f3691c9c55f6287dcbd53824b731caa80bf84ceb4fdda3d52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|