setError() function
Reports a failed cache write at warning level. Always logs: a write failure matters even when tracing is off.
Signature:
export declare function setError(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 write targeted |
|
decorator |
Function |
decorator that attempted the write |
Returns:
void
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.