Skip to main content

Module storage

Module storage 

Source
Expand description

storage capability module — persistent key-value storage (host-delegated).

Functions: get, set, delete, keys. All storage operations are host-delegated — the runtime host manages actual persistence via env.host_call(cap_id=2, fn_id, payload). This module validates arguments and returns CapabilityCall errors to signal the caller to route the call to the host.

§Cap ID / Fn ID Mapping

fn_idFunction
1get
2set
3delete
4keys

Structs§

StorageModule
The storage capability module.