decrement(name, amount = 1, options = nil)
public
Decrement a cached integer value. Returns the updated value.
If the key is unset or has expired, it will be set to -amount.
cache.decrement("foo")
To set a specific value, call #write:
cache.write("baz", 5)
cache.decrement("baz")
# File activesupport/lib/active_support/cache/memory_store.rb, line 164
def decrement(name, amount = 1, options = nil)
modify_value(name, -amount, options)
end