ZremCommand: Contents
  ZREM _key_ _member_ (Redis >
    Return value

ZremCommand

#sidebar SortedSetCommandsSidebar

ZREM _key_ _member_ (Redis >

1.1) = Time complexity O(log(N)) with N being the number of elements in the sorted set
Remove the specified member from the sorted set value stored at key. If_member_ was not a member of the set no operation is performed. If keydoes not not hold a set value an error is returned.

Return value

Integer reply, specifically:

1 if the new element was removed
0 if the new element was not a member of the set