class RailsBand::ActiveSupport::Event::CacheRead

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

def hit

def hit
  return @hit if defined? @hit
  @hit = @event.payload[:hit]
end

def key

def key
  @key ||= @event.payload.fetch(:key)
end

def super_operation

def super_operation
  return @super_operation if defined? @super_operation
  @super_operation = @event.payload[:super_operation]
end