Skip to main content

Interface: StorageConfig

Defined in: nestlens.config.ts:481

Storage configuration for NestLens

Properties​

driver?​

optional driver: StorageDriver

Defined in: nestlens.config.ts:501

Storage driver to use. Default: 'memory' (zero config, works everywhere including Docker)


maxEntries?​

optional maxEntries: number

Defined in: nestlens.config.ts:495

The most entries to keep, whichever driver is in use. Default: 10000.

Age was the only bound the file and Redis drivers had — maxEntries was declared on the memory driver alone — so a busy application filled a disk or a Redis instance long before anything reached pruning.maxAge. At a thousand requests a second the default twenty-four hours is eighty-six million entries.

The oldest go first, which is the same rule the in-memory driver has always followed. Set it to 0 to keep everything and rely on age alone — a deliberate choice rather than the previous silence.


memory?​

optional memory: MemoryStorageConfig

Defined in: nestlens.config.ts:510

In-memory storage configuration


redis?​

optional redis: RedisStorageConfig

Defined in: nestlens.config.ts:507

Redis-specific configuration


sqlite?​

optional sqlite: SqliteStorageConfig

Defined in: nestlens.config.ts:504

SQLite-specific configuration