upstash / ratelimit-js

Rate limiting library for serverless runtimes
https://ratelimit-with-upstash.vercel.app/
MIT License
1.72k stars 33 forks source link

Question about rate limit #64

Closed RedFr4me closed 1 year ago

RedFr4me commented 1 year ago

Hey, sorry if this is a dumb question. I'm wondering if this keeps the redis storage low by deleting the ip's that haven't sent a request in the last window time?

chronark commented 1 year ago

Hey, yes. all entries are automatically evicted after some time