method
increment
v2.1.0 -
Show latest stable
- Class:
ActiveSupport::Cache::Store
increment(key, amount = 1)public
No documentation available.
# File activesupport/lib/active_support/cache.rb, line 96
def increment(key, amount = 1)
log("incrementing", key, amount)
if num = read(key)
write(key, num + amount)
else
nil
end
end