Class: ActiveSupport::Cache::Store

Inherits:
Object
  • Object
show all
Defined in:
lib/restash_rails/rails_ext/active_support/cache/store.rb

Instance Method Summary collapse

Instance Method Details

#default_instrumentObject



4
# File 'lib/restash_rails/rails_ext/active_support/cache/store.rb', line 4

alias default_instrument instrument

#instrument(operation, key, options = nil) ⇒ Object



5
6
7
8
# File 'lib/restash_rails/rails_ext/active_support/cache/store.rb', line 5

def instrument(operation, key, options = nil)
  self.class.instrument = true
  default_instrument(operation, key, options, &Proc.new)
end