Configuration options for cache implementations.

interface CacheConfig {
    defaultTtl?: number;
    enableStats?: boolean;
    keyPrefix?: string;
    logPrefix?: string;
    namespace?: string;
    onlyLogHitsMisses?: boolean;
    verbose?: boolean;
}

Properties

defaultTtl?: number

Default time-to-live for cache entries in milliseconds

enableStats?: boolean

Whether to track and maintain cache statistics

keyPrefix?: string

Prefix to add to all cache keys

logPrefix?: string

Prefix string for log messages (e.g., '[EntityCache]', '[EmbeddingCache]')

namespace?: string

Namespace for grouping related cache entries

onlyLogHitsMisses?: boolean

Only log cache hits and misses, ignoring verbose setting

verbose?: boolean

Enable verbose logging for cache operations