Method: RailsPerformance::DataSource#store

Defined in:
lib/rails_performance/data_source.rb

#storeObject



33
34
35
36
37
38
39
40
41
# File 'lib/rails_performance/data_source.rb', line 33

def store
  keys, values = Utils.fetch_from_redis(query)

  return [] if keys.blank?

  keys.each_with_index do |key, index|
    yield klass.new(key, values[index])
  end
end