UNPKG

@accounter/server

Version:
11 lines (10 loc) 393 B
import NodeCache from 'node-cache'; export declare function getCacheInstance(options?: NodeCache.Options): { get: <T>(key: NodeCache.Key) => T | undefined; set: { <T>(key: NodeCache.Key, value: T, ttl: number | string): boolean; <T>(key: NodeCache.Key, value: T): boolean; }; delete: (keys: NodeCache.Key | NodeCache.Key[]) => number; clear: () => void; };