Skip to main content

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 ...

Metadata

Release files for Flask-Redlock 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-Redlock 0.0.3
File Size Uploaded
Flask-Redlock-0.0.3.tar.gz 1.9 kB Details

Release files / Flask-Redlock-0.0.3.tar.gz

Download URL Flask-Redlock-0.0.3.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c0c94ff9db74afe4b214bddee65223a155b1907b9ed45284e0ee337e05f7c0e5
BLAKE2b-256 checksum
How to use checksums
13cfc282a01e4918b327ebc861e88cabf05b5a11a902962cdd7bfc9a63c00d2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

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