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