sethvargo / go-limiter

A supersonic rate limiting package for Go with HTTP middleware.
Apache License 2.0
555 stars 40 forks source link

Always set EXPIRE on keys after setting #12

Closed sethvargo closed 4 years ago

sethvargo commented 4 years ago

Per https://redis.io/commands/expire, the timeout is cleared after any STORE command (including HSET), so we need to always expire after every call, or else we leak keys as they are never cleaned up.

github-actions[bot] commented 4 years ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.