instance method
increment
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
increment(key, amount = 1)
No documentation comment.
Parameters
-
keyreq -
amountopt = 1
Source
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 70
def increment(key, amount = 1)
if value = super
local_cache.mute { local_cache.write(key, value.to_s) } if local_cache
value
else
nil
end
end
Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 70
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Strategy::LocalCache