import { type BaseCacheHandlerInterface } from "./types"; export default class CacheHandler implements BaseCacheHandlerInterface { /** options passed from next.js */ options: any; /** * @param options options passed from next.js */ constructor(options: any); /** * get cache * @param key cache key * @returns cached data */ get(key: string): Promise<{ tags: string[]; value: any; lastModified: number; } | undefined>; /** * set cache * @param key cache key * @param data data to store * @param ctx next.js context */ set(key: string, data: any, ctx: any): Promise; /** * revalidate tag in cache * @param tag cache tag */ revalidateTag(tag: string): Promise; /** * get cached keys * @returns cache keys */ keys(): Promise; /** * delete cache for key * @param key cache key */ delete(key: string): Promise; }