Skip to main content
Learn about the Memory Storage Adapter - the default adapter for VectoriaDB.

When to Use

Use MemoryStorageAdapter when:
  • Developing and testing locally
  • Re-indexing is fast enough for your use case
  • You don’t need persistence between restarts

Configuration

src/storage/memory-adapter.ts

Options

Behavior

  • No persistence: Data is lost on restart
  • No cache validation: hasValidCache() always returns false
  • Fast: No I/O overhead
src/memory-behavior.ts

Development Pattern

src/development.ts

Testing Pattern

src/testing.ts

Switching Adapters

Easy to switch between adapters for different environments:
src/adapter-switching.ts

Storage Overview

Storage fundamentals

File Adapter

Persist to disk

Redis Adapter

Multi-pod storage