hp-app-bundle-sdk
Version:
A comprehensive SDK for building mini-applications.
12 lines • 690 B
TypeScript
import { MiniApp } from "../../core";
export declare class CacheManager {
private miniapp;
constructor(miniapp: MiniApp);
putCache(cacheKey: string, cacheValue: string, isLRUCache?: boolean): Promise<void>;
getCache(cacheKey: string, isLRUCache?: boolean, isAnonymousUser?: boolean): Promise<any>;
clearCache(cacheKey: string, isLRUCache?: boolean, isAnonymousUser?: boolean): Promise<void>;
clearAllCache(isLRUCache?: boolean): Promise<void>;
putJson(key: string, value: any, isLRUCache?: boolean): Promise<void>;
getJson<T = any>(key: string, isLRUCache?: boolean, isAnonymousUser?: boolean): Promise<T | null>;
}
//# sourceMappingURL=CacheManager.d.ts.map