Class: RailsBand::ActiveSupport::Event::CacheIncrement

Inherits:
BaseEvent
  • Object
show all
Defined in:
lib/rails_band/active_support/event/cache_increment.rb

Overview

A wrapper for the event that is passed to cache_increment.active_support.

Instance Attribute Summary

Attributes inherited from BaseEvent

#allocations, #cpu_time, #duration, #end, #idle_time, #name, #time, #transaction_id

Instance Method Summary collapse

Methods inherited from BaseEvent

#initialize, #slice, #to_h

Constructor Details

This class inherits a constructor from RailsBand::BaseEvent

Instance Method Details

#amount ⇒ Object



16
17
18
# File 'lib/rails_band/active_support/event/cache_increment.rb', line 16

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

#key ⇒ Object



8
9
10
# File 'lib/rails_band/active_support/event/cache_increment.rb', line 8

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

#store ⇒ Object



12
13
14
# File 'lib/rails_band/active_support/event/cache_increment.rb', line 12

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