Skip to content

@saflib/object-store


@saflib/object-store

Classes

ClassDescription
DiskObjectStore-
FileNotFoundError-
ObjectStore-
PathTraversalError-
StorageError-
TestObjectStoreIn-memory ObjectStore for tests. Use setFiles/getFiles to seed or inspect state when testing code that uses an ObjectStore.

Interfaces

InterfaceDescription
TestFile-

Type Aliases

Type AliasDescription
CreateObjectStoreOptions-

Functions

FunctionDescription
createObjectStoreCreates an ObjectStore instance. When NODE_ENV is "test", always returns a TestObjectStore (in-memory) regardless of the requested type, so tests don't write to disk. Stores are cached by container key so multiple contexts with the same config share the same in-memory store.