@gip-recia/esco-content-menu-lit
Version:
Web component to display into eyebrow menu a user information menu with profile picture and more.
16 lines • 810 B
TypeScript
export default class cachedService {
protected static _enabled: boolean;
protected static _token: string;
protected static _ttl: number;
static set enabled(enabled: boolean);
static set token(token: string);
static set cacheTtl(ttl: number);
static getDatas(url: string, options: RequestInit | undefined): Promise<any>;
static getCachedData(cacheName: string, url: string): Promise<unknown>;
static addToCache(cacheName: string, url: string, options: RequestInit | undefined): Promise<void>;
static deleteCachedData(url: string): Promise<boolean>;
static deleteOldCaches(cacheName: string, url: string): Promise<void>;
static generateCacheName(token: string): string;
static isCacheAvailable(): Promise<boolean>;
}
//# sourceMappingURL=cachedService.d.ts.map