{"repo":"express-rate-limit/rate-limit-redis","free":true,"listed":false,"github":"https://github.com/express-rate-limit/rate-limit-redis","clone":"git clone https://github.com/express-rate-limit/rate-limit-redis.git","description":"A rate limiting store for express-rate-limit with Redis/Redict/Valkey/etc.","language":"TypeScript","stars":219,"topics":["express","express-js","express-middleware","expressjs","node","node-js","nodejs","rate-limit","rate-limiter","rate-limiting"],"license":"MIT","category":"databases-storage","readme_excerpt":"rate-limit-redis A redis store for the express-rate-limit middleware. Also supports redict & valkey . Installation From the npm registry: From Github Releases: Replace {version} with the version of the package that you want to use, e.g.: 3.0.0 . Usage Importing This library is provided in ESM as well as CJS forms, and works with both Javascript and Typescript projects. This package requires you to use Node 16 or above and Redis 2.6.12 or above. Import it in a CommonJS project ( type: commonjs or no type field in package.json ) as follows: Import it in a ESM project ( type: module in package.json ) as follows: Examples To use it with a node-redis client: To use it with a ioredis client: Configuration sendCommand The function used to send commands to Redis. The function signature is as follows: The raw command sending function varies from library to library; some are given below: Library Function ------------------------------------------------------------------ ----------------------------------------------------------------------------- node-redis async (...args: string[]) = client.sendCommand(args) node-redis (cluster) See sendCommandCluster below ioredis async (command: string, ...args: string[]) = client.call(command, ...args) handy-redis async (...args: string[]) = client.nodeRedis.sendCommand(args) tedis async (...args: string[]) = client.command(...args) redis-fast-driver async (...args: string[]) = client.rawCallAsync(args) yoredis async (...args: string[]) = (await cl","default_branch":null,"files":null,"tree":[],"storefront":"/r/express-rate-limit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/express-rate-limit/rate-limit-redis/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}