SMEMBERS

Since 1.1.0Sets

Syntax

SMEMBERS key
  • Flags: readonly
  • ACL categories: @read, @set, @slow
  • Arity: 2

Returns every member of the set at key, in no particular order.

Reply

  • An array of members; empty if the key does not exist.

Examples

> SADD s a b c
(integer) 3
> SMEMBERS s
1) "b"
2) "a"
3) "c"