
Nov. 24, 2024
4:36 p.m.
Lightweight implementation of a hierarchical distributed read-write lock using Redis. This implementation supports concurrent readers and exclusive writers in a tree-like hierarchy, ensuring that locks on ancestors affect descendants. Here are some of the key features of this implementation: * Hierarchical locking with customizable path separators (e.g., /, :). * Concurrent read locks on the same path or ancestors. * Exclusive write locks on paths or descendants. * Timeout and non-blocking lock options. * Automatic lock refreshing for long-running operations. https://pypi.org/project/redishilok/