prorm API Reference
    Preparing search index...

    Interface CacheManagerConfig

    Combined cache manager options

    interface CacheManagerConfig {
        l1?: CacheManagerL1Options;
        l2?: L2CacheOptions;
        key?: CacheKeyOptions;
        readFromReplicas?: boolean;
        clusterNodes?: RedisClusterNodeConfig[];
        clusterOptions?: Omit<RedisClusterOptions, "nodes">;
        maxConnections?: number;
        connectTimeout?: number;
        commandTimeout?: number;
        retryStrategy?: (times: number) => number | Error | null;
        db?: number;
        enableKeyspaceNotifications?: boolean;
    }

    Hierarchy (View Summary)

    Index

    L1 (in-memory) cache options

    L2 (Redis cluster) cache options

    Cache key prefix options

    readFromReplicas?: boolean

    Enable read-from-replicas for Redis cluster

    false
    
    clusterNodes?: RedisClusterNodeConfig[]

    Redis cluster nodes configuration

    clusterOptions?: Omit<RedisClusterOptions, "nodes">

    Additional Redis cluster options

    maxConnections?: number

    Maximum number of connections in the connection pool

    10
    
    connectTimeout?: number

    Connect timeout in milliseconds

    10000
    
    commandTimeout?: number

    Command timeout in milliseconds

    5000
    
    retryStrategy?: (times: number) => number | Error | null

    Retry strategy configuration

    db?: number

    Database number (0-15)

    0
    
    enableKeyspaceNotifications?: boolean

    Enable keyspace notifications for cache invalidation

    false