Expand description
A Persist backend that atomically saves the value to a locked file on disk.
Structs§
- File
- An implementation of
Persistbased on an atomically-updated file at a given path. An exclusive lock is taken usingflock(2)to ensure that concurrent updates cannot happen, and writes are saved to a staging file before being moved over the old file, an operation that is atomic on all Unixes.
Enums§
- Error
- The kinds of error that persisting a value to a file can produce.