class RailsBand::ActiveSupport::Event::CacheReadMulti

A wrapper for the event that is passed to ‘cache_read_multi.active_support`.

Public Instance Methods

hits() click to toggle source
# File lib/rails_band/active_support/event/cache_read_multi.rb, line 18
def hits
  @hits ||= @event.payload[:hits] || []
end
key() click to toggle source
# File lib/rails_band/active_support/event/cache_read_multi.rb, line 8
def key
  @key ||= @event.payload.fetch(:key)
end
super_operation() click to toggle source
# File lib/rails_band/active_support/event/cache_read_multi.rb, line 22
def super_operation
  return @super_operation if defined? @super_operation

  @super_operation = @event.payload[:super_operation]
end