instance method
increment
Ruby on Rails 4.1.16
Since v2.2.3Signature
increment(name, amount = 1, options = nil)
Increment an integer value in the cache.
Options are passed to the underlying cache implementation.
All implementations may not support this method.
Parameters
-
namereq -
amountopt = 1 -
optionsopt = nil
Source
# File activesupport/lib/active_support/cache.rb, line 430
def increment(name, amount = 1, options = nil)
raise NotImplementedError.new("#{self.class.name} does not support increment")
end
Defined in activesupport/lib/active_support/cache.rb line 430
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store