import { CacheMap, DisposeFun } from "../interface"; import BaseCacheWithDispose from "./BaseCacheWithDispose"; /** * To clear the data in the cache */ export default class Cache extends BaseCacheWithDispose implements CacheMap { constructor(weak?: boolean, dispose?: DisposeFun); get(key: string | object): V | undefined; set(key: string | object, value: V): this; delete(key: string | object): boolean; }