Skip to main content

Interface: PruningConfig

Defined in: nestlens.config.ts:526

When old entries are deleted, and how often that is checked.

The two are in different units, which is worth saying out loud because they sit next to each other: pruning: { maxAge: 14 * 24, interval: 60 } is a fortnight checked hourly, and a reader who took both for hours would have written an application that prunes every sixty days. Reported by someone who found the units by reading pruning.service.ts.

They are kept as they are — an age is naturally hours and a check interval naturally minutes — and both are named in the line NestLens prints at startup, with their units.

Properties​

enabled?​

optional enabled: boolean

Defined in: nestlens.config.ts:528

Default: true.


interval?​

optional interval: number

Defined in: nestlens.config.ts:532

How often pruning runs, in minutes. Default: 60.


maxAge?​

optional maxAge: number

Defined in: nestlens.config.ts:530

How old an entry may get, in hours. Default: 24.