Debian Codegraph @

docs/locking.rst

raw
1 .. _locking:
2
3 .. WARNING::
4 This was added in version 0.7.0 and the API is new. This means its open to breaking changes in future versions until the API is considered stable.
5
6
7 Locking
8 =======
9
10
11 .. WARNING::
12 The implementations provided are **NOT** intented for consistency/synchronization purposes. If you need a locking mechanism focused on consistency, consider implementing your mechanism based on more serious tools like https://zookeeper.apache.org/.
13
14
15 There are a couple of locking implementations than can help you to protect against different scenarios:
16
17
18 .. _redlock:
19
20 RedLock
21 -------
22
23 .. autoclass:: aiocache.lock.RedLock
24 :members:
25
26
27 .. _optimisticlock:
28
29 OptimisticLock
30 --------------
31
32 .. autoclass:: aiocache.lock.OptimisticLock
33 :members: