Skip to main content

Module store

Module store 

Source
Expand description

Where tiles live: a trait over store paths, a POSIX directory behind it, and an in-memory store for tests and single-process use.

Paths are /-separated and relative to the store root. A write lands whole or not at all: the POSIX store writes a temporary file beside the target, syncs it, renames it over the path and syncs the directory, as Tessera’s POSIX storage does.

Structs§

MemoryStore
Files in memory. Clones share the same files, so a writer and a reader can hold one store.
PosixStore
A directory. Every path is resolved under the root; .., absolute paths and empty elements are refused.

Traits§

TileStore
Byte storage keyed by store path.