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.

class documentation

class CacheHint(msgspec.Struct): (source)

View In Hierarchy

Describe client cache freshness without caching server-side results.

Method __post_init__ Reject cache hints with an invalid TTL or scope.
Class Variable scope Dependency-injection scope associated with the current operation.
Class Variable ttl_ms Ttl ms produced by msgspec.field.
def __post_init__(self): (source)

Reject cache hints with an invalid TTL or scope.

Returns
NoneValidate the cache TTL and scope during initialization.
Raises
ValueErrorIf the TTL is negative or not an integer, or the scope is invalid.
scope: Literal['public', 'private'] = (source)

Dependency-injection scope associated with the current operation.

Ttl ms produced by msgspec.field.