fetchError() function
Reports a failed cache read at warning level. The caller then falls through to the real method, so a read failure costs latency rather than correctness.
Signature:
export declare function fetchError(logger: ILogger, err: any, key: string, decorator: Function): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
logger |
logger to report through | |
|
err |
any |
error redis raised |
|
key |
string |
redis key the read targeted |
|
decorator |
Function |
decorator that attempted the read |
Returns:
void
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.