Module cell

Source
Expand description

A serializable value stored in the stable memory.

Structs§

Cell
Represents a serializable value stored in the stable memory. It has semantics similar to “stable variables” in Motoko and share the same limitations. The main difference is that Cell writes its value to the memory on each assignment, not just in upgrade hooks. You should use cells only for small (up to a few MiB) values to keep upgrades safe.

Enums§

InitError
Indicates a failure to initialize a Cell.
ValueError
Indicates a failure to set cell’s value.