Skip to main content

Module storage

Module storage 

Source
Expand description

Persistent per-game key/value store (gasm:storage): saves, settings, scores.

Keys: 1–128 bytes of [A-Za-z0-9._-]. Values up to 1 MiB, 16 MiB per game. The runner picks the namespace; headless runs start with an empty store.

Enums§

Error
Why try_set failed.

Functions§

delete
Delete a key. False if it didn’t exist.
get
keys
All keys of this game, sorted.
set
Store a value. False on invalid key, size/quota limits or I/O error (try_set says which).
try_set
Store a value.