Setu-TS
    Preparing search index...

    Interface CacheStoreOptions

    Options for creating a cache store backend.

    0.1.0

    interface CacheStoreOptions {
        client?: IRedisClient;
        commandTimeoutMs?: number;
        defaultTtl?: number;
        maxSize?: number;
        prefix?: string;
        url?: string;
    }
    Index
    client?: IRedisClient

    Injected ioredis-compatible client (bypasses lazy import).

    commandTimeoutMs?: number

    Bound on one Redis command, in milliseconds (store 'redis' only; ignored by 'memory' and 'noop'). Default 15000; 0 disables it. A paused or partitioned server keeps its socket open, so without a bound a command waits forever; with it the command REJECTS, the cache call is counted failed, and the caller sees the error. Applied as ioredis commandTimeout to the client the store builds — never to an injected client, which keeps its own configuration. A value outside 0– 2147483647 (including NaN) throws RangeError at construction.

    0.9.0

    defaultTtl?: number

    Default TTL in seconds when set omits ttlSeconds.

    maxSize?: number

    Maximum entry count for MemoryStore LRU eviction.

    prefix?: string

    Key prefix applied to all cache keys.

    url?: string

    Redis connection URL (used when store is 'redis').