Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 762 Bytes

locking.rst

File metadata and controls

33 lines (18 loc) · 762 Bytes

Warning

This was added in version 0.6.2 and the API is new. This means its open to breaking changes in future versions until the API is considered stable.

Locking

Warning

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

There are a couple of locking implementations than can help you to protect against different scenarios:

RedLock

aiocache.lock.RedLock

OptimisticLock

aiocache.lock.OptimisticLock