UNPKG

@canmertinyo/rate-limiter-redis

Version:

A simple rate-limiting middleware for Express.js with support for in-memory, Redis, and MongoDB storage

10 lines (9 loc) 397 B
"use strict"; /** * @property port - Redis server port, default : 6379 * @property host - Redis server host or IP address. * @property username - Redis username for authentication (optional) * @property password - Redis password for authentication (optional). * @property db - Redis database number, default is 0 (optional). */ Object.defineProperty(exports, "__esModule", { value: true });