import { MongoClient } from "mongodb"; import { CacheEntry, CacheSettings } from "./index"; import { CacheRefreshStrategy } from "../../types"; export declare class MongoCache { private client; private db; private collection; private readonly memoryCacheClient; private readonly connectionUrl; private readonly databaseName; private readonly collectionName; private readonly staleTTL; private readonly expiresTTL; readonly allowStale: boolean; readonly cacheRefreshStrategy: CacheRefreshStrategy; constructor({ staleTTL, // 1 minute expiresTTL, // 10 minutes allowStale, cacheRefreshStrategy, connectionUrl, databaseName, collectionName, useAdditionalMemoryCache, }?: CacheSettings); connect(): Promise; get(key: string): Promise; set(key: string, payload: unknown): Promise; getClient(): MongoClient | undefined; getStatus(): Promise<"up" | "down">; }