@jbagatta/johnny-cache
Version:
A robust distributed dictionary for coordinating and caching expensive operations in a distributed environment
8 lines (7 loc) • 371 B
TypeScript
import NodeCache from "node-cache";
import { CacheOptions, DistributedDictionary } from "../core/types";
import { NatsConnection } from "nats";
import Redis from "ioredis";
export declare class DistributedDictionaryFactory {
static create<K, V>(client: NatsConnection | Redis, cacheOptions: CacheOptions, l1Cache?: NodeCache): Promise<DistributedDictionary<K, V>>;
}