Stone.js API
    Preparing search index...

    Options for the @Cache decorator: a single store's configuration (the driver is required).

    interface CacheOptions {
        driver: CacheDriver;
        name?: string;
        prefix?: string;
        ttl?: number;
        [key: string]: unknown;
    }

    Hierarchy

    Indexable

    • [key: string]: unknown
    Index
    driver: CacheDriver

    Which driver backs this store.

    name?: string

    The store name, used to resolve it via cacheManager.store(name).

    prefix?: string

    A key prefix/namespace applied to every key in this store.

    ttl?: number

    Default TTL (seconds) applied when a write specifies none.