Method: Conflow::Redis::SortedSetField#size

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

#sizeInteger

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.

Number of elements in the set

Examples:

field.size #=> 4

Returns:

  • (Integer)

    Size of the set



34
35
36
# File 'lib/conflow/redis/sorted_set_field.rb', line 34

def size
  command :zcard, [key]
end