Type Alias WithCacheSettings<TParameters>

WithCacheSettings: {
    key: Invokable<TParameters, string>;
    ttl?: ITimeSpan | null;
}

Settings for the cache middleware.

Type Parameters

  • TParameters extends unknown[] = unknown[]

    Tuple type of the wrapped function's parameters.

Type declaration