Skip to main content

Interface: CacheConfig

Defined in: electron/utils/cache/StandardizedCache.ts:121

Cache configuration.

Properties

enableStats?

optional enableStats?: boolean;

Defined in: electron/utils/cache/StandardizedCache.ts:123

Enable statistics tracking


eventEmitter?

optional eventEmitter?: TypedEventBus<UptimeEvents>;

Defined in: electron/utils/cache/StandardizedCache.ts:125

Event emitter for cache events


maxSize?

optional maxSize?: number;

Defined in: electron/utils/cache/StandardizedCache.ts:127

Maximum cache size


name

name: string;

Defined in: electron/utils/cache/StandardizedCache.ts:129

Cache identifier for logging


ttl?

optional ttl?: number;

Defined in: electron/utils/cache/StandardizedCache.ts:138

Cache-level TTL applied when no per-entry TTL is supplied.

Remarks

Provide 0 or a negative value to disable automatic expiration.

Default Value

300_000 (5 minutes)