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.DROP

Last updated
RATELIMIT.DROP name
Group
Rate limiting
Complexity
O(N) where N is the number of tracked keys
Arity
2 (exactly, counting the command name)
Flags
write, slow
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.DROP deletes a limiter with all of its per-key state.

Case RESP2 RESP3
Limiter deleted Simple string OK Same

Errors:

  • ERR limiter not found if the limiter does not exist.
  • ERR wrong number of arguments for 'ratelimit.drop' 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.DROP api
OK
127.0.0.1:6379> RATELIMIT.DROP api
(error) ERR limiter not found

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

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