ZREMRANGEBYSCORE

Works with sorted set values.

Syntax

ZREMRANGEBYSCORE <key> <min> <max>

Parameters

  • key: Primary key to read or mutate.
  • min: Minimum score or lower lex/range bound.
  • max: Maximum score or upper lex/range bound.

Returns

Returns a Redis-compatible reply whose exact shape depends on the command and selected options.

Examples

ZREMRANGEBYSCORE leaderboard 0 10

BetterKV Notes

  • Group: Sorted Set.
  • Access: Mixed.
  • Status: Implemented in BetterKV with command-specific semantics.