Skip to main content

Module file

Module file 

Source
Expand description

A Persist backend that atomically saves the value to a locked file on disk.

Structs§

File
An implementation of Persist based on an atomically-updated file at a given path. An exclusive lock is taken using flock(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