idempotency-redis
Version:
Idempotency guarantee via Redis
15 lines (14 loc) • 506 B
TypeScript
/**
* Represents an error that occurred while interacting with the cache.
*/
export declare class RedisCacheError extends Error {
readonly key: string;
readonly cause?: unknown;
/**
* Constructs an instance of RedisCacheError.
* @param message The error message.
* @param key The cache key associated with the error.
* @param cause (Optional) The underlying error or reason for this error, if any.
*/
constructor(message: string, key: string, cause?: unknown);
}