Skip to content

Useful helpers and tools when working with Redis or using redis for common problems like rate-limitting, locks and other...

License

Notifications You must be signed in to change notification settings

radiocutfm/redis-tools

Repository files navigation

Redis Tools

Useful helpers and tools when working with Redis or using redis for common problems like rate-limitting, locks and other...

12Factor configuration

Standarized initialization of client using environment, supporting Sentinel.

# export REDIS_URL=redis://localhost
# export REDIS_URL=sentinel://localhost?master=mymaster
# export REDIS_URL=sentinel://localhost:12343/0?master=mymaster
import redistools
redistools.get_redis()  # get redis client
redistools.get_redis(master=False)  # slave (read-only) client

Rate limitting

Rate limitting log filter

Lock decorator

About

Useful helpers and tools when working with Redis or using redis for common problems like rate-limitting, locks and other...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages