in-memory
Kept only in the running program's memory rather than in a database or file, so it is fast but lost when the program stops.
In more detail
In-memory repositories and caches are handy for tests and small services. They share the same interface as the persistent version, so they can be swapped.
Related terms
- repository pattern — Putting all the code that reads and writes one kind of data behind a single object, so the rest of the app never talks to the database directly.
- in-memory cache — A store in the program's memory that keeps recently fetched values so they can be reused without asking the original source again.
Taught in
- Verify Your Environment: Running tsc And Bun TypeScript — Production TypeScript
- Optional Properties, Readonly And Index Signatures — Production TypeScript
- Generic Interfaces, Classes And Type Aliases — Production TypeScript