Class: Ohm::RangedSortedSet

Inherits:
SortedSet
  • Object
show all
Defined in:
lib/ohm/sorted.rb

Instance Attribute Summary

Attributes included from SortedMethods

#key, #model, #namespace

Instance Method Summary collapse

Methods inherited from SortedSet

#[], #all, #db, #each, #empty?, #include?

Methods included from SortedMethods

#between, #count, #first, #ids, #initialize, #inspect, #offset, #reverse, #reversed?, #slice

Instance Method Details

#sizeObject



142
143
144
# File 'lib/ohm/sorted.rb', line 142

def size
  execute { |key| fix_size(db.zcount(key, @range.first, @range.last)) }
end