import { CacheOptions } from "../types"; export declare class BasicCache { exists(key: any): Promise; get(key: any): Promise; set(key: any, value: any, ttl: number): Promise; delete(key: any): Promise; /** * This function should remove all cached data. Currently this * is only used for testing. */ deleteAll(): Promise; /** * Add cache prefixes and prevent too long cache keys. */ createKey(prefix: CacheOptions["prefix"], key: any): string; }