go-redis / redis_rate

Rate limiting for go-redis
https://redis.uptrace.dev/guide/go-redis-rate-limiting.html
BSD 2-Clause "Simplified" License
824 stars 102 forks source link

Allow customization of prefix used for redis keys #70

Closed chaayac closed 2 years ago

chaayac commented 2 years ago

Allows for the customisation of the rate key prefix with NewLimiterWithPrefix. This is a backwards-compatible change.

chaayac commented 2 years ago

This is a backwards-compatible change.

Actually, no it's not as it changes the struct which might cause some issues for people.