Method: Conflow::Redis::SortedSetField#delete

Defined in:
lib/conflow/redis/sorted_set_field.rb

#delete(value) ⇒ Integer

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Remove element from the set.

Examples:

field.delete(:last) #=> 1

Parameters:

  • value (String, Symbol)

    element of the set

Returns:

  • (Integer)

    Number of removed elements (1 if key existed, 0 otherwise)



44
45
46
# File 'lib/conflow/redis/sorted_set_field.rb', line 44

def delete(value)
  command :zrem, [key, value]
end