Beignet API reference
    Preparing search index...

    Interface RedisCacheProviderOptions

    Options for createRedisCacheProvider.

    Defined factory options override matching REDIS_* environment variables, consistent with other env-backed Beignet providers.

    interface RedisCacheProviderOptions {
        connectTimeoutMs?: number;
        db?: number;
        maxRetriesPerRequest?: number;
        retryStrategy?: (times: number) => number | null;
    }
    Index
    connectTimeoutMs?: number

    Timeout for the initial connection attempt, in milliseconds.

    5000
    
    db?: number

    Redis database number.

    0
    
    maxRetriesPerRequest?: number

    How many times a single command is retried before its promise rejects.

    2
    
    retryStrategy?: (times: number) => number | null

    Custom ioredis retry strategy. Replaces the default strategy, which stops retrying after REDIS_CONNECT_MAX_ATTEMPTS during the initial connect and reconnects with capped exponential backoff afterwards.