Interface: CacheConfig
Defined in: electron/utils/cache/StandardizedCache.ts:126
Cache configuration.
Properties
enableStats?
optionalenableStats?:boolean
Defined in: electron/utils/cache/StandardizedCache.ts:128
Enable statistics tracking
eventEmitter?
optionaleventEmitter?:TypedEventBus<UptimeEvents>
Defined in: electron/utils/cache/StandardizedCache.ts:130
Event emitter for cache events
maxSize?
optionalmaxSize?:number
Defined in: electron/utils/cache/StandardizedCache.ts:132
Maximum cache size
name
name:
string
Defined in: electron/utils/cache/StandardizedCache.ts:134
Cache identifier for logging
ttl?
optionalttl?:number
Defined in: electron/utils/cache/StandardizedCache.ts:143
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)