import { ICacheKeyKeys } from "@webiny/utils"; export type { ICacheKeyKeys }; export interface ICacheKey { get(): string; keys: ICacheKeyKeys; } export interface ICache { id: string | undefined; get(cacheKey: ICacheKey): T | null; set(cacheKey: ICacheKey, value: T): T; getOrSet(cacheKey: ICacheKey, cb: () => T): T; clear(cacheKey?: ICacheKey | ICacheKey[]): void; }