instance method
decrement
Ruby on Rails 6.0.6
Since v3.0.20Signature
decrement(name, amount = 1, options = nil)
Decrement an integer value in the cache.
Parameters
-
namereq -
amountopt = 1 -
optionsopt = nil
Source
# File activesupport/lib/active_support/cache/memory_store.rb, line 90
def decrement(name, amount = 1, options = nil)
modify_value(name, -amount, options)
end
Defined in activesupport/lib/active_support/cache/memory_store.rb line 90
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemoryStore