setCommandResult

abstract fun setCommandResult(key: String, value: Any)

Stores the result of a command execution for later retrieval.

Parameters

key

A unique identifier for the command result (typically the command ID)

value

The result value to store. Can be any object that needs to be preserved for idempotency or auditing purposes.

Throws

if the key is null or empty

if the result cannot be stored due to storage limitations