UNPKG

lru-send

Version:

LRU-based caching middleware for Node.js

5 lines (4 loc) 249 B
import { IncomingMessage as Request } from 'http'; import { LRUResponse } from './types'; import LRU from 'quick-lru'; export declare const lruSend: (lruInstance?: LRU<string, unknown>) => (req: Request, res: LRUResponse, next: () => void) => void;