Stable Memory

Persist canister state across upgrades. Covers StableBTreeMap and MemoryManager in Rust, persistent actor in Motoko, and upgrade hook patterns. Use when dealing with canister upgrades, data persistence, data lost after upgrade, stable storage, StableBTreeMap, pre_upgrade traps, or heap vs stable memory. Do NOT use for inter-canister calls or access control — use multi-canister or canister-security instead.

dfinity 0ec8c33 16.8 KB Updated

File contents

dfinity/icskills/tree/main/skills/stable-memory commit 0ec8c33fde

Frequently asked questions

npx skillmds@latest add dfinity/stable-memory