VRANGE

Since 1.1.0Vector sets

Syntax

VRANGE key start end [count]
  • Flags: readonly
  • ACL categories: @read, @slow, @vector
  • Arity: -2

Returns the elements of the vector set at key between two names in lexicographical order, with bounds as ZRANGEBYLEX takes them, and at most count.

Examples

> VRANGE points - +
1) "a"
2) "b"
3) "c"
> VRANGE points [b + 1
1) "b"