import { CacheOptions } from "../types"; import { BasicCache } from "./BasicCache"; export declare class DiskCache extends BasicCache { readonly rootPath: string; readonly pathSegments: number; readonly segmentLength: number; constructor(rootPath: string, pathSegments?: number, segmentLength?: number); private getPath; exists(key: string): Promise; get(key: string): Promise; set(key: string, value: any, ttl: number): Promise; delete(key: string): Promise; deleteAll(): Promise; createKey(prefix: CacheOptions["prefix"], key: any): string; }