Type alias RedisCacheFetcher<TFunc>

RedisCacheFetcher<TFunc>: ((...args) => ReturnType<TFunc>) & {
    fetch: RedisCacheFetcherEx<TFunc>;
    reset(): Promise<boolean>;
}

A Redis cache data fetcher.

Type Parameters

  • TFunc extends AsyncFunc = AsyncFunc

Type declaration

    • (...args): ReturnType<TFunc>
    • Parameters

      • Rest ...args: Parameters<TFunc>

      Returns ReturnType<TFunc>

Type declaration

  • fetch: RedisCacheFetcherEx<TFunc>

    Does the same as the function itself, but returns a result object with extended information.

  • reset:function
    • Resets the current status.

      Returns Promise<boolean>

      The promise with the value that indicates if operation was successful or not.

Param: ...args

The parameters of the function.

Returns

The result of the function.

Generated using TypeDoc