Method: ActiveSupport::Cache::Strategy::LocalCache#increment
- Defined in:
- activesupport/lib/active_support/cache/strategy/local_cache.rb
#increment(name, amount = 1, **options) ⇒ Object
:nodoc:
97 98 99 100 101 102 |
# File 'activesupport/lib/active_support/cache/strategy/local_cache.rb', line 97 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 |