@filepack/adapter-memory
v0.1.1
Published
In-memory Filepack adapter for development and tests
Readme
@filepack/adapter-memory
Development and test implementation of Filepack's atomic FileRecordStore.
import { memoryAdapter } from "@filepack/adapter-memory";
const records = memoryAdapter();Data and cleanup work are process-local and disappear on restart. Use
@filepack/adapter-drizzle for production persistence.
Cleanup claims preserve marker settlement state and generation-bound leases.
Multipart session attachment uses compare-and-set semantics. Part receipts are
atomic, ordered, and same-ETag idempotent.
This is also the reference implementation for adapter authors. Implement the
small FileRecordStore interface from @filepack/core, then run the shared
fileRecordStoreContract cases from @filepack/core/testing.
See the repository adapter authoring guide
before implementing a persistent adapter.
