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 MsgspecSerializer(BaseSerializer): (source)
Serialize cache payloads through msgspec JSON encoding.
| Method | dumps |
Serialize value to UTF-8 encoded JSON bytes. |
| Method | loads |
Deserialize JSON data back to a Python object. |
| Constant | DEFAULT |
Default encoding used by MsgspecSerializer. |
Serialize value to UTF-8 encoded JSON bytes.
| Parameters | |
value:typing.Any | A JSON-serializable Python object. |
| Returns | |
bytes | msgspec-encoded JSON payload. |
Deserialize JSON data back to a Python object.
| Parameters | |
data:object | Raw JSON text or byte buffer returned by the backend, a native counter value, or None when no stored payload exists. |
| Returns | |
typing.Any | Decoded Python object, None when data is None, or data unchanged when the backend stored a native value. |