export interface CacheKey { prefix?: string; key: any; } export declare class InMemoryDB { static calcKey({ prefix, key }: CacheKey): string; static insert(key: Key, resolver: () => Promise, options?: { length?: number; strategy?: 'default' | 'cache-first'; }): Promise; static list(key: Key): Promise; static get(key: Key): Promise; static has(key: Key): Promise; static save(key: Key, resolver: ((saved?: any) => Promise | Value) | Value, options?: { expiresInSeconds?: number; strategy?: 'cache-only' | 'cache-first'; }): Promise; static clear(cacheKey: CacheKey): Promise; }