Setu-TS
    Preparing search index...

    Interface CachePluginOptions

    Options for the CachePlugin factory.

    import { CachePlugin } from '@setu-ts/cache-plugin';

    // Memory store (default)
    app.register(CachePlugin());

    // Redis store with URL
    app.register(CachePlugin({ store: 'redis', options: { url: 'redis://localhost:6379' } }));

    0.1.0

    interface CachePluginOptions {
        diagnostics?: CacheDiagnosticsOptions;
        name?: string;
        options?: CacheStoreOptions;
        store?: CacheStoreType;
    }
    Index

    Opt-in cache operation counters for the local diagnostics connector (M98i). Absent (the default) registers an inert disabled source under CAPABILITIES.CACHE_DIAGNOSTICS and observes nothing: no collector and no clock read on any cache call. Validated when CachePlugin(...) is called, with fixed messages that never echo a supplied value.

    0.8.0

    name?: string

    Plugin instance name for multi-cache setups. Derives the capability token as cache.<name> when not 'default'.

    Store-specific options.

    Store backend type. Defaults to 'memory'.