Interface IExecuteRedisCacheFetcherResult<TFunc>

Result of a RedisCacheFetcherEx<TFunc> call.

interface IExecuteRedisCacheFetcherResult {
    errorToThrow: any;
    value: ReturnType<TFunc>;
    valueStatus: RedisCacheFetcherValueStatus;
}

Type Parameters

  • TFunc extends AsyncFunc = AsyncFunc

Properties

errorToThrow: any

If defined, this is the Error object, which should be thrown, because at least no data can be loaded yet.

value: ReturnType<TFunc>

The last known value. Will throw an Error, if there is currently no value available. s. errorToThrow for more information.

The current status of value.

Generated using TypeDoc