async_redis_objects¶
In most cases it is sufficient to import only ObjectClient
, then construct
whatever objects you need from it.
-
class
async_redis_objects.
ObjectClient
(redis_client, encoder=None, decoder=None)¶ A client object to represent a redis server.
Can be used as a factory to access data structures in the server as python objects.
-
priority_queue
(name, encoder=None, decoder=None)¶ Load a stateful-set to be used as a priority queue.
- Return type
-
lock
(name, max_duration=60, timeout=None)¶ A redis resident lock to create mutex blocks across devices.
- Parameters
name (
str
) – A unique identifier for the lockmax_duration (
int
) – Max time to hold the lock in secondstimeout (
Optional
[int
]) – Max time to wait to acquire the mutex
- Returns
-