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 Memcached(BaseEntity): (source)
Represent the configuration entity for a Memcached cache store.
| Method | __post |
Validate the Memcached configuration after initialization. |
| Method | __validate |
Validate the driver property. |
| Method | __validate |
Validate the endpoint property. |
| Method | __validate |
Validate the port property. |
| Instance Variable | driver |
The driver type. Defaults to 'memcached'. |
| Instance Variable | endpoint |
Memcached host address. Resolved from the MEMCACHED_HOST environment variable or defaults to '127.0.0.1'. |
| Instance Variable | port |
Memcached port number. Resolved from the MEMCACHED_PORT environment variable or defaults to 11211. |
Inherited from BaseEntity:
| Class Method | _cached |
Retrieve field definitions and normalized types cached by class. |
| Method | get |
Describe field names, normalized types, defaults, and metadata. |
| Method | to |
Convert the dataclass instance to a recursively copied dictionary. |
| Class Variable | __slots__ |
Undocumented |
Validate the Memcached configuration after initialization.
| Returns | |
None | Validates every field against its declared type hint. |
| Raises | |
TypeError | If any property does not match its expected type. |
ValueError | If any property fails its value validation. |
Validate the driver property.
| Returns | |
None | This method performs validation and returns None. |
| Raises | |
TypeError | If driver is not a string. |
ValueError | If driver is an empty string. |
Validate the port property.
| Returns | |
None | This method performs validation and returns None. |
| Raises | |
TypeError | If port is not an integer. |
ValueError | If port is not between 1 and 65535. |