Skip to content
Snippets Groups Projects
Commit 2ee7a34a authored by Anton Sarukhanov's avatar Anton Sarukhanov
Browse files

Lock cleanup

parent 85c654ac
No related branches found
No related tags found
No related merge requests found
......@@ -7,11 +7,6 @@ from random import random
r = redis.StrictRedis()
class Lock():
"""
A way to prevent things from happening concurrently.
Synchronization is bad! Use at your own risk.
"""
def __init__(cls, key, shared=False, expires=25, timeout=30, step=0.5):
"""
A lock mechanism, using Redis as a backend.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment