DataDungeon::LocalStorage
Inherits DataDungeon::Storage < Reference < Object
Local filesystem storage rooted at a directory. Keys are relative paths under the root, e.g. "venue/ab/abcd….webp".
Constructors
Instance methods
Enumerate every object key currently in the backend. Used by the consistency sweep to find objects with no owning row. May be expensive on large object stores; intended for maintenance, not the hot path.
Whether checking an object costs a file-system call rather than a
network round trip. Lookups only confirm that a record's object still
exists when it does; for remote storage, check_consistency finds drift.
Stream the object at the given key: the block gets an IO over its bytes. This default reads the whole object; adapters that can stream override it.
Resolve a key to a usable location — a local absolute path here, a URL for object stores.
Writes to a temporary sibling, then renames it into place, so a crash never leaves a truncated object at the key. DB#store skips writing a content-addressed key that already exists, so a partial object there would otherwise be permanent.