UNPKG

express-easy-curd

Version:

A lightweight helper library for building Express.js routes, controllers, and Redis-enhanced middleware with optional Redis support.

5 lines (4 loc) 278 B
import { Request, Response, NextFunction } from "express"; import ioredis from "ioredis"; declare const cacheMiddleware: (redis: ioredis) => (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>; export default cacheMiddleware;