gtht-miniapp-sdk
Version:
gtht-miniapp-sdk 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
16 lines (15 loc) • 350 B
TypeScript
export declare class Persist {
name: string;
prefix: string;
cache: Record<string, {
ttl: number;
value: any;
}>;
constructor(name: string);
private getCache;
private save;
get(key: string): any;
set(key: string, value: any, ttl?: number): void;
remove(key: string): void;
clear(): void;
}