Class: TimeBandits::TimeConsumers::Memcache::Subscriber

Inherits:
ActiveSupport::LogSubscriber
  • Object
show all
Defined in:
lib/time_bandits/time_consumers/mem_cache.rb

Instance Method Summary collapse

Instance Method Details

#get(event) ⇒ Object



16
17
18
19
20
21
# File 'lib/time_bandits/time_consumers/mem_cache.rb', line 16

def get(event)
  i = Memcache.instance
  i.time += event.duration
  i.calls += 1
  i.misses += event.payload[:misses]
end