Skip to main content

Module storage

Module storage 

Source
Expand description

Atomic filesystem storage engine for persistent application state.

Provides thread-safe, crash-safe atomic JSON file persistence using temporary file writes and POSIX atomic renames (M-CANONICAL-DOCS).

Structsยง

AtomicFile
Thread-safe manager for an atomically persisted JSON file on disk.
StateDirectory
Helper to ensure the base state directory exists and return paths for state components.