nodejs-logsage
Version:
Powerful logger module for NestJS, seamlessly integrating Pino and Winston for flexible logging with easy configuration.
12 lines (9 loc) • 372 B
text/typescript
import { IDBKeyType, IDatabase } from '../types/db.types.mjs';
declare class SpeedCache<K extends IDBKeyType, T> implements IDatabase<K, T> {
private db;
get(key: K): T | undefined;
set(key: K, value: T, expiry?: number): void;
del(key: K): void;
}
declare const speedCache: SpeedCache<IDBKeyType, unknown>;
export { SpeedCache, speedCache as default };