/state
State management. New in 0.9.10
Enkaidu maintains an in-memory name-spaced key/value state system that can be used to set and get key/value pairs organized within namespaces.
In-memory global state does not persist across different Enkaidu processes.
| Sub-command | Usage | Description |
|---|---|---|
| namespaces | /state global (or g) namespaces (or ns) |
List active namespaces in the global in-memory state |
| set | /state global (or g) set ns=<NAMESPACE> key=<KEY> value=<STR> |
Set a global state key/value within the given namespace |
| get | /state global (or g) get ns=<NAMESPACE> key=<KEY> |
Get a global state value for a key within the given namespace |
namespaces
Usage: /state global (or g) namespaces (or ns)
List active namespaces in the global in-memory state.
set
Usage: /state global (or g) set ns=<NAMESPACE> key=<KEY> value=<STR>
Set a global state key/value within the given namespace. Every key change increments the namespace’s revision number.
get
Usage: /state global (or g) get ns=<NAMESPACE> key=<KEY>
Get a global state value for a key within the given namespace.