Method: ActiveSupport::Cache::Store#decrement

Defined in:
lib/active_support/cache.rb

#decrement(name, amount = 1, options = nil) ⇒ Object

Decrements an integer value in the cache.

Options are passed to the underlying cache implementation.

Some implementations may not support this method.

Raises:

  • (NotImplementedError)


750
751
752
# File 'lib/active_support/cache.rb', line 750

def decrement(name, amount = 1, options = nil)
  raise NotImplementedError.new("#{self.class.name} does not support decrement")
end