@imqueue/pg-cache
Version:
PostgreSQL managed cache on Redis for @imqueue-based service methods
13 lines (12 loc) • 613 B
TypeScript
/**
* Constructs and returns a hash string for the given set of className,
* methodName, and arguments. The hash is deterministic: argument objects that
* differ only in key insertion order produce the same signature, and circular
* arguments are handled without throwing.
*
* @param className - name of the class the method belongs to
* @param methodName - name of the method being called
* @param args - arguments passed to the method
* @returns {string} - hexadecimal hash string
*/
export declare function signature(className: string, methodName: string | symbol, args: readonly unknown[]): string;