Result¶
- class zcached.Result(raw_value, error=None)[source]¶
Bases:
Generic[T]Represents the result of the server response.
- Parameters:
- value¶
Operation result. Stores empty bytes if the operation fails.
- error¶
Error message detailing why the operation failed, value is None if operation was successful.
- classmethod fail(error)[source]¶
Create a Result object for a failed operation.
- Parameters:
error (str)