class ActiveSupport::Cache::MemCacheStore
def decrement(name, amount = 1, options = nil) # :nodoc:
to zero.
Calling it on a value not stored with :raw will initialize that value
operator and can only be used on values written with the :raw option.
Decrement a cached value. This method uses the memcached decr atomic
def decrement(name, amount = 1, options = nil) # :nodoc: options = merged_options(options) instrument(:decrement, name, :amount => amount) do @data.decr(escape_key(namespaced_key(name, options)), amount) end rescue Dalli::DalliError => e logger.error("DalliError (#{e}): #{e.message}") if logger nil end