Method: ActiveSupport::Cache::Store#increment

Defined in:
lib/active_support/cache.rb

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

Increments an integer value in the cache.

Options are passed to the underlying cache implementation.

Some implementations may not support this method.

Raises:

  • (NotImplementedError)


741
742
743
# File 'lib/active_support/cache.rb', line 741

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