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

Coordinate cache access through local locks or distributed leases.

Class CacheLock Coordinate cache access through local locks or distributed leases.
Function _is_backend Check backend identity without importing an unused store.
Constant _DEFAULT_LEASE Default lease applied when no timeout is given, matching the Redis branch.
Constant _FILE_LOCKS Share active file-cache locks within each event loop and storage directory.
Constant _POLL_INTERVAL Delay between acquisition attempts while polling the database backend.
def _is_backend(backend: object, module_name: str, class_name: str) -> bool: (source)

Check backend identity without importing an unused store.

Parameters
backend:objectBackend instance, including subclasses of built-in stores.
module_name:strDefining module already loaded when its backend instance exists.
class_name:strBackend class exported by the defining module.
Returns
boolWhether the instance belongs to the loaded backend class.
_DEFAULT_LEASE: float = (source)

Default lease applied when no timeout is given, matching the Redis branch.

Value
10

Share active file-cache locks within each event loop and storage directory.

Value
WeakValueDictionary()
_POLL_INTERVAL: float = (source)

Delay between acquisition attempts while polling the database backend.

Value
0.05