@arathron/n8n-nodes-zoho-books
Version:
n8n community nodes for Zoho Books and Zoho Inventory API integration - Complete CRUD operations for Sales Orders, Invoices, Items, Vendors, Credit Notes, Payments, Purchase Orders, Bills, Composite Items, Tax Management, Tax Groups, and Tax Exemptions
31 lines • 986 B
TypeScript
declare class TTLCache {
private cache;
private readonly defaultTTL;
get<T>(key: string): T | undefined;
set<T>(key: string, data: T, ttlMs?: number): void;
delete(key: string): boolean;
deletePattern(pattern: string): void;
clear(): void;
getStats(): {
total: number;
valid: number;
expired: number;
hitRate: number;
};
cleanup(): number;
}
export declare const cache: TTLCache;
export declare function getCached<T>(key: string): T | undefined;
export declare function setCached<T>(key: string, data: T, ttlMs?: number): void;
export declare function delCached(key: string): boolean;
export declare function delCachedPattern(pattern: string): void;
export declare function clearCache(): void;
export declare function getCacheStats(): {
total: number;
valid: number;
expired: number;
hitRate: number;
};
export declare function cleanupCache(): number;
export {};
//# sourceMappingURL=Cache.d.ts.map