Skip to main content

Adds redis lock support to your Flask application

Project description


from flask_redlock import RedisLock

redis_lock = RedisLock()

with redis_lock.lock('something.lock', 3000, retry=10, interval=0.2) as lock:
    if not lock:
        return 'busy!'

    # Do your work here ...

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Flask-Redlock, version 0.0.3
Nom du fichier, taille File type Version de Python Date de publication Hashes
Nom du fichier, taille Flask-Redlock-0.0.3.tar.gz (1.9 kB) File type Source Version de Python Aucune Date de publication Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page