A simple redis lock.
Project description
Installation
pip install simple-redis-lock
Usage
from simple_redis_lock import SimpleLock
import your_redis_client
with SimpleLock(your_redis_client, 'my_lock_name', ex=30):
print('do something')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.