method
increment
increment(key, amount = 1)
public
Hide source
# File activesupport/lib/active_support/cache.rb, line 193 def increment(key, amount = 1) log("incrementing", key, amount) if num = read(key) write(key, num + amount) else nil end end