Method: ActiveSupport::Cache::Strategy::LocalCache#increment
- Defined in:
- lib/active_support/cache/strategy/local_cache.rb
#increment(name, amount = 1, **options) ⇒ Object
:nodoc:
110 111 112 113 114 115 |
# File 'lib/active_support/cache/strategy/local_cache.rb', line 110 def increment(name, amount = 1, **) # :nodoc: return super unless local_cache value = bypass_local_cache { super } write_cache_value(name, value, raw: true, **) value end |