Skip to content

Commit

Permalink
Merge pull request #182 from jamesob/jamesob-22-11-lock-doc
Browse files Browse the repository at this point in the history
doc: add note about lock event keys
  • Loading branch information
coleifer committed Nov 4, 2022
2 parents 3fe8097 + 93304ab commit 2b9bfd6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions walrus/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ class Lock(object):
a value is pushed into this list, signalling that the lock is
available.
.. warning::
The event list for each lock persists
indefinitely unless removed using :py:meth:`Lock.clear` or
otherwise manually in the Redis database. For this reason,
be cautious when creating locks dynamically, or your
keyspace might grow in an unbounded way.
The lock uses Lua scripts to ensure the atomicity of its
operations.
Expand Down

0 comments on commit 2b9bfd6

Please sign in to comment.