@stephen-shopopop/cache
    Preparing search index...

    Interface RedisCacheStoreOptions

    Configuration options for Redis cache store.

    RedisCacheStoreOptions

    interface RedisCacheStoreOptions {
        clientOpts?: RedisOptions;
        errorCallback?: (err: unknown) => void;
        maxCount?: number;
        maxEntrySize?: number;
        maxSize?: number;
        tracking?: boolean;
    }
    Index

    Properties

    clientOpts?: RedisOptions

    Options for configuring the Redis client.

    errorCallback?: (err: unknown) => void

    Callback function to handle errors.

    maxCount?: number

    Maximum number of entries allowed in the cache. Default to 1024.

    maxEntrySize?: number

    Maximum size of a single cache entry in bytes. Default to 100MB.

    maxSize?: number

    Maximum size in bytes that the cache can grow to. Default to 100MB.

    tracking?: boolean

    Enables Redis client-side caching. Defaults to true.