Cache - lock¶
Info
The Lock is used with the Cache Client. In most cases, there is no need to directly use the Lock object
AsyncInMemoryLock
¶
Bases: BaseLock
Source code in webtool/cache/lock.py
acquire
async
¶
if blocking is enabled, retry with Equal Jitter Backoff strategy
RETURNS | DESCRIPTION |
---|---|
bool
|
True when acquired lock, else False
TYPE:
|
Source code in webtool/cache/lock.py
AsyncRedisLock
¶
Bases: BaseLock
Source code in webtool/cache/lock.py
acquire
async
¶
if blocking is enabled, retry with Equal Jitter Backoff strategy
RETURNS | DESCRIPTION |
---|---|
bool
|
True when acquired lock, else False
TYPE:
|