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
Undocumented
| Async Method | add |
Store value only if key is absent in the default store. |
| Async Method | clear |
Remove all entries from the default store. |
| Async Method | decrement |
Decrement the integer at key in the default store. |
| Async Method | delete |
Remove key from the default store. |
| Async Method | get |
Retrieve the value for key from the default store. |
| Async Method | get |
Retrieve multiple values from the default store. |
| Async Method | has |
Check whether key exists in the default store. |
| Async Method | increment |
Increment the integer at key in the default store. |
| Async Method | pull |
Return and immediately delete key from the default store. |
| Async Method | remember |
Return the cached value; resolve and cache if absent. |
| Async Method | remember |
Return the cached value; resolve and cache forever if absent. |
| Async Method | set |
Store value under key in the default store. |
| Async Method | set |
Store multiple key/value pairs in the default store. |
| Method | store |
Return the repository for the named (or default) store. |
@abstractmethod
async def add(self, key: str, value: Any, ttl: float | None = None) -> bool:
(source)
¶
overridden in
orionis.cache.CacheManageroverridden in
orionis.cache.CacheManagerRemove all entries from the default store.
| Returns | |
bool | True on success. |
overridden in
orionis.cache.CacheManagerRetrieve the value for key from the default store.
| Parameters | |
key:str | Cache key. |
| Returns | |
Any | Cached value, or None when absent. |
overridden in
orionis.cache.CacheManagerReturn and immediately delete key from the default store.
| Parameters | |
key:str | Cache key. |
| Returns | |
Any | Cached value, or None when absent. |
@abstractmethod
async def remember(self, key: str, ttl: float | None, resolver: Callable) -> Any:
(source)
¶
overridden in
orionis.cache.CacheManagerReturn the cached value; resolve and cache if absent.
| Parameters | |
key:str | Cache key. |
ttl:float | None | TTL applied when caching the resolved value. |
resolver:Callable | Zero-argument callable (sync or async) producing the value. |
| Returns | |
Any | Cached or freshly computed value. |
overridden in
orionis.cache.CacheManagerReturn the cached value; resolve and cache forever if absent.
| Parameters | |
key:str | Cache key. |
resolver:Callable | Zero-argument callable (sync or async) producing the value. |
| Returns | |
Any | Cached or freshly computed value. |
@abstractmethod
async def set(self, key: str, value: Any, ttl: float | None = None) -> bool:
(source)
¶
overridden in
orionis.cache.CacheManager@abstractmethod
async def setMany(self, values: dict[ str, Any], ttl: float | None = None) -> bool:
(source)
¶
overridden in
orionis.cache.CacheManageroverridden in
orionis.cache.CacheManagerReturn the repository for the named (or default) store.
| Parameters | |
name:str | None | Store name. None selects the configured default. |
| Returns | |
ICacheRepository | Repository bound to the requested store. |