You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to propose another idea. Is it possible to make it more pluggable? I mean, it would be great if we could use any caching mechanism with this plugin.
For example, split the lib into 2(or more) packages. One is @fastify/rate-limit-core, and another is @fastify/rate-limit-ioredis.
@fastify/rate-limit-core provides core fastify plugin implementation and an interface for the caching mechanism, along with its local in-memory implementation. And @fastify/rate-limit-ioredis provides ioredis implementation for the interface.
This way, if we want to use node-redis or any other caching solution, we can develop a custom implementation while using this plugin.
Prerequisites
🚀 Feature Proposal
Add support for
redis
package.Motivation
According to the issue in ioredis(redis/ioredis#1870 (comment)), the future mainstream package is going to be
redis
, notioredis
.So I think it's a good idea to support
redis
package.Example
No response
The text was updated successfully, but these errors were encountered: