In-memory storage adapter (default, no persistence).Documentation Index
Fetch the complete documentation index at: https://docs.agentfront.dev/llms.txt
Use this file to discover all available pages before exploring further.
Constructor
StorageAdapterConfig
| Option | Type | Default | Description |
|---|---|---|---|
namespace | string | 'default' | Namespace (for consistency) |
Example
Behavior
- No persistence: Data is lost on restart
- No cache validation:
hasValidCache()always returnsfalse - Fast: No I/O overhead
Methods
| Method | Description |
|---|---|
initialize() | No-op |
load() | Returns stored data or null |
save(data) | Stores data in memory |
hasValidCache(metadata) | Always returns false |
clear() | Clears stored data |
close() | Clears stored data |
Use Cases
- Development and testing
- When re-indexing is fast enough
- Serverless functions with bundled embeddings
Related
FileStorageAdapter
File storage
RedisStorageAdapter
Redis storage
Storage Guide
Memory adapter guide