UNPKG

restifyx.js

Version:

Advanced API endpoint handler system with automatic documentation

34 lines (33 loc) 811 B
declare global { var CURRENT_REQUEST: any | undefined; } interface GetCacheOptions { type?: "return" | "console.log"; key?: string; } /** * Get data from the cache * * @param options - Options for retrieving cache data * @returns The cached data or undefined if not found */ export declare function GetCache(options?: GetCacheOptions): Promise<any>; /** * Set data in the cache * * @param key - Cache key * @param data - Data to cache * @param duration - Cache duration in seconds */ export declare function SetCache(key: string, data: any, duration: number): void; /** * Delete data from the cache * * @param key - Cache key to delete */ export declare function DeleteCache(key: string): void; /** * Clear the entire cache */ export declare function ClearCache(): void; export {};