instance method
increment
Ruby on Rails 7.0.10
Since v3.0.20Signature
increment(name, amount = 1, options = nil)
Increment an integer value in the cache.
Parameters
-
namereq -
amountopt = 1 -
optionsopt = nil
Source
# File activesupport/lib/active_support/cache/memory_store.rb, line 112
def increment(name, amount = 1, options = nil)
modify_value(name, amount, options)
end
Defined in activesupport/lib/active_support/cache/memory_store.rb line 112
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemoryStore