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
- Status includes information you'd want to set in [`RateLimit` headers](https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/).
20
-
- Bool is whether the limit was exceeded or not, true means reject the request.
20
+
- Bool is whether action should be allowed or not, false means reject the action.
21
21
- Errors occur for cache issues, such as Redis connectivity or malformed data.
22
22
23
23
The implementation is store agnostic, however due to the way it works, Redis is the recommended approach due to the usage of [hash sets](https://redis.io/docs/latest/develop/data-types/hashes/).
24
24
25
25
The `incr` argument allows you to assign different weights to the action being rate limited. For example, a simple request may use a value of 1 and an expensive request may use a value of 10.
0 commit comments