Skip to main content
https://img.shields.io/badge/License-GPL%20v3-blue.svg https://badge.fury.io/py/retry-redis.svg https://img.shields.io/travis/Gatsby-Lee/retry-redis.svg

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)

Source distribution for retry-redis 1.3.1
File Size Uploaded
retry-redis-1.3.1.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for retry-redis 1.3.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.3.1 This release

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

1 release file

1.1.1

2 release files

1.1.0

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page