instance method
increment
Ruby on Rails 4.2.9
Since v3.0.20Signature
increment(name, amount = 1, options = nil)
Increments an already existing integer value that is stored in the cache. If the key is not found nothing is done.
Parameters
-
namereq -
amountopt = 1 -
optionsopt = nil
Source
# File activesupport/lib/active_support/cache/file_store.rb, line 46
def increment(name, amount = 1, options = nil)
modify_value(name, amount, options)
end
Defined in activesupport/lib/active_support/cache/file_store.rb line 46
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore