Skip to main content

Interface: CacheOptions

Properties

sweepInterval

Optional sweepInterval: number

How frequently to remove data from cache that are older than the lifetime/ttl (in milliseconds, 0 for never)

To prevent high CPU usage, set a higher value (>= 30 seconds)

Default

120000 (2 minutes)

Defined in

util/Store.ts:11


ttl

Optional ttl: number

How long a data should stay in the cache until it is considered sweepable (in milliseconds, 0 for forever)

Default

0

Defined in

util/Store.ts:17