Adds redis lock support to your Flask application
Project description
Example
from flask_redlock import RedisLock
redis_lock = RedisLock()
redis_lock.init_app(app)
with redis_lock.lock('something.lock', 3000, retry=10, interval=0.2) as lock:
if not lock:
return 'busy!'
# Do your work here ...
Links
Github <https://github.com/TheWaWaR/flask-redlock>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-Redlock-0.0.3.tar.gz
(1.9 kB
view hashes)