hyperion.adapters.keyval.filesystem¶
hyperion.adapters.keyval.filesystem
¶
Filesystem-backed :class:KeyValueStore adapter (lite -- stdlib only).
One file per (hashed, prefixed) key under a root directory, mirroring the
LocalFileCache idiom. Keys are url-safe-base64 encoded into filenames so
arbitrary keys (containing /, : ...) are safe and reversible. Writes
are atomic and durable (write to a temp file in the same directory, fsync,
then os.replace; the temp file is removed if the write fails).
FilesystemStore
¶
Bases: KeyValueStore
A persistent key-value store backed by a directory of files.