Type Alias WithCacheSettings<TParameters>

WithCacheSettings: CacheWriteSettings & { key: Invokable<TParameters, string> }

Settings for the cache middleware.

Type Parameters

  • TParameters extends unknown[] = unknown[]

    Tuple type of the wrapped function's parameters.

Type declaration

  • key: Invokable<TParameters, string>

    A function or static value that produces the cache key from the wrapped function's arguments.