THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
module documentation
Poll a Redis NX lease rather than relying on process-local waiter events.
| Class | |
Poll a Redis NX lease rather than relying on process-local waiter events. |
| Function | resolver |
Choose Redis polling or preserve the native lock of another backend. |
def resolver_lease(backend:
Any, key: str, lease: float, wait_timeout: float) -> CacheLock | RedisResolverLease:
(source)
¶
Choose Redis polling or preserve the native lock of another backend.
| Parameters | |
backend:typing.Any | Repository backend, including aiocache Redis subclasses. |
key:str | Repository-prefixed lock key. |
lease:float | Positive ownership lifetime in seconds. |
waitfloat | Maximum Redis acquisition wait and cleanup budget. |
| Returns | |
CacheLock | RedisResolverLease | Context manager with backend-specific lease guarantees. |