RATELIMIT.RESET
RATELIMIT.RESET name key
- Group
- Rate limiting
- Complexity
- O(1)
- Arity
- 3 (exactly, counting the command name)
- Flags
- write, fast
- Keys
- first 1, last 1, step 1
- HotKV Cloud
- Performance and Scale
- On-Premise
- requires the rate-limiting license feature
Named rate limiters apply one policy (a limit, a window and an algorithm) separately to every key you check against them, such as a user id, an API key or an IP address. RATELIMIT.RESET forgets everything the limiter knows about
key, so its next request is treated as its first. Other keys are not
affected. It replies OK whether or not the key had any state.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Key reset | Simple string OK |
Same |
Errors:
ERR limiter not foundif the limiter does not exist.ERR wrong number of arguments for 'ratelimit.reset' commandif the argument count is wrong.NOLICENSE rate-limiting requires a HotKV license. Contact sales@hotkv.comif your license does not include therate-limitingfeature.
Examples
Section titled “Examples”127.0.0.1:6379> RATELIMIT.RESET api user:1OK127.0.0.1:6379> RATELIMIT.RESET missing user:1(error) ERR limiter not foundCompatibility
Section titled “Compatibility”HotKV-only command. Redis and Valkey have no equivalent.
See also
Section titled “See also”RATELIMIT.CREATE, RATELIMIT.CHECK, RATELIMIT.PEEK, RATELIMIT.STATS, RATELIMIT.DROP, RATELIMIT.LIST, AI features guide
Was this page helpful?
Thanks for the feedback.