Skip to main content

Module store

Module store 

Source
Expand description

The node store: one JSON file, written atomically and only when something changed (batched over a short delay, so a burst of interview results is one write, and reports never cause a write at all).

Structs§

StoreData
What is persisted.

Constants§

VERSION
Format version of the file.

Functions§

load
Reads a store; a missing file is an empty store.
save
Writes a store atomically: a temporary file in the same directory, synced, then renamed over the old one.