Class: FakeRedis::SortedSetIntersectStore

Inherits:
SortedSetStore show all
Defined in:
lib/fakeredis/sorted_set_store.rb

Instance Attribute Summary

Attributes inherited from SortedSetStore

#aggregate, #data, #keys, #weights

Instance Method Summary collapse

Methods inherited from SortedSetStore

#aggregate_max, #aggregate_min, #aggregate_sum, #call, #computed_values, #hashes, #initialize

Constructor Details

This class inherits a constructor from FakeRedis::SortedSetStore

Instance Method Details

#selected_keysObject



70
71
72
# File 'lib/fakeredis/sorted_set_store.rb', line 70

def selected_keys
  @values ||= hashes.map(&:keys).reduce(:&)
end