UNPKG

lru-send

Version:

LRU-based caching middleware for Node.js

5 lines (4 loc) 256 B
import { IncomingMessage as Request } from 'http'; import { LRUResponse } from './types'; import * as Redis from 'ioredis'; export declare const lruSend: (redisInstance?: Redis.Redis) => (req: Request, res: LRUResponse, next: () => void) => Promise<void>;