@kanaksan/tamil-calendar-widget
Version:
A reusable React widget for displaying Tamil daily calendar sheets
31 lines (30 loc) • 810 B
TypeScript
declare class ImageCacheManager {
private cache;
private readonly CACHE_DURATION;
/**
* Generate cache key from API URL and date
*/
private getCacheKey;
/**
* Get cached image URL if available and not expired
*/
getCachedImage(apiUrl: string, date: string): string | null;
/**
* Cache image URL with expiration
*/
setCachedImage(apiUrl: string, date: string, imageUrl: string): void;
/**
* Remove specific cached image and revoke blob URL
*/
removeCachedImage(apiUrl: string, date: string): void;
/**
* Clear all cached images and revoke blob URLs
*/
clearCache(): void;
/**
* Clean up expired entries
*/
cleanupExpired(): void;
}
export declare const imageCache: ImageCacheManager;
export {};