go-redis/redis_rate

Check if available without limiting

Opened this issue · 1 comments

It would be nice to be able to have something like "IsAllowed" which would return me a boolean. This is for being able to block or not a request without "dropping in buckets". I'm using this for the creation of a process which will at times require polling, and I will have to "drop in buckets" only when the process has been successfully created, and not right when the request is made.

Greetings

limiter.AllowN(ctx, "project:123", l, 0) ?