Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

RATELIMIT.RESET

Last updated
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.

Case RESP2 RESP3
Key reset Simple string OK Same

Errors:

  • ERR limiter not found if the limiter does not exist.
  • ERR wrong number of arguments for 'ratelimit.reset' command if the argument count is wrong.
  • NOLICENSE rate-limiting requires a HotKV license. Contact sales@hotkv.com if your license does not include the rate-limiting feature.
127.0.0.1:6379> RATELIMIT.RESET api user:1
OK
127.0.0.1:6379> RATELIMIT.RESET missing user:1
(error) ERR limiter not found

HotKV-only command. Redis and Valkey have no equivalent.

RATELIMIT.CREATE, RATELIMIT.CHECK, RATELIMIT.PEEK, RATELIMIT.STATS, RATELIMIT.DROP, RATELIMIT.LIST, AI features guide