ORIONIS API REFERENCE

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 RedisResolverLease Poll a Redis NX lease rather than relying on process-local waiter events.
Function resolver_lease 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.AnyRepository backend, including aiocache Redis subclasses.
key:strRepository-prefixed lock key.
lease:floatPositive ownership lifetime in seconds.
wait_timeout:floatMaximum Redis acquisition wait and cleanup budget.
Returns
CacheLock | RedisResolverLeaseContext manager with backend-specific lease guarantees.