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
| Method | __init__ |
Initialize the manager and resolve the active cache configuration. |
| Method | _build |
Instantiate and return the raw backend for name. |
| Method | _build |
Instantiate and return the database cache backend. |
| 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 by amount 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 and has not expired in the default store. |
| Async Method | increment |
Increment the integer at key by amount in the default store. |
| Method | lock |
Return an async context-manager lock for key on the default store. |
| Async Method | pull |
Return and immediately delete key from the default store. |
| Async Method | remember |
Return the cached value for key; resolve and cache if absent. |
| Async Method | remember |
Return the cached value for key; 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 CacheRepository for the named (or default) store. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _app |
Undocumented |
| Instance Variable | _base |
Undocumented |
| Instance Variable | _config |
Undocumented |
| Instance Variable | _default |
Undocumented |
| Instance Variable | _prefix |
Undocumented |
| Instance Variable | _repositories |
Undocumented |
Initialize the manager and resolve the active cache configuration.
| Parameters | |
app:IApplication | Application container used to read config and the base path. |
| Returns | |
None | Complete the documented operation without returning a value. |
Instantiate and return the raw backend for name.
| Parameters | |
name:str | Driver name ('file', 'memory', 'redis', 'memcached'). |
| Returns | |
Any | Configured backend instance. |
| Raises | |
CacheStoreException | When name is 'redis' or 'memcached' but the store is not configured. |
Instantiate and return the database cache backend.
| Returns | |
Any | Configured DatabaseCacheBackend instance. |
| Raises | |
CacheStoreException | When the database store is not configured. |
Retrieve the value for key from the default store.
| Parameters | |
key:str | Cache key. |
| Returns | |
Any | Cached value, or None when absent. |
Return and immediately delete key from the default store.
| Parameters | |
key:str | Cache key. |
| Returns | |
Any | Cached value, or None when absent. |
Return the cached value for key; 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. |
Return the cached value for key; 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. |
Return the CacheRepository for the named (or default) store.
The repository is created on first access and cached for reuse.
| Parameters | |
name:str | None | Store name ('file', 'memory', 'redis', 'memcached'). Defaults to the configured default store. |
| Returns | |
CacheRepository | Repository for the selected backend. |
| Raises | |
CacheStoreException | When the requested store is not configured. |