Skip to main content

Interface: RedisStorageConfig

Defined in: nestlens.config.ts:444

Redis storage configuration

Properties​

commandTimeout?​

optional commandTimeout: number

Defined in: nestlens.config.ts:465

Command timeout in milliseconds. Default: 5000


db?​

optional db: number

Defined in: nestlens.config.ts:459

Redis database number. Default: 0.

Decides the database whether or not url is given — it is written into the URL, which is the one place ioredis reads it from. Give NestLens one of its own: keyPrefix keeps the keys distinct from the application's, and a FLUSHDB or an allkeys-lru eviction policy does not care about prefixes.


host?​

optional host: string

Defined in: nestlens.config.ts:446

Redis host. Default: 'localhost'


keyPrefix?​

optional keyPrefix: string

Defined in: nestlens.config.ts:461

Key prefix for all NestLens keys. Default: 'nestlens:'


maxEntries?​

optional maxEntries: number

Defined in: nestlens.config.ts:467

Set by the factory from storage.maxEntries; not configured here.


password?​

optional password: string

Defined in: nestlens.config.ts:450

Redis password


port?​

optional port: number

Defined in: nestlens.config.ts:448

Redis port. Default: 6379


url?​

optional url: string

Defined in: nestlens.config.ts:463

Redis connection URL (overrides host, port and password if provided)