method
decrement
v6.1.3.1 -
Show latest stable
- Class:
ActiveSupport::Cache::MemCacheStore
decrement(name, amount = 1, options = nil)public
Decrement a cached value. This method uses the memcached decr atomic operator and can only be used on values written with the :raw option. Calling it on a value not stored with :raw will initialize that value to zero.