class ActiveSupport::Cache::MemCacheStore

def increment(name, amount = 1, options = nil) # :nodoc:

: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.
Increment a cached value. This method uses the memcached incr atomic
def increment(name, amount = 1, options = nil) # :nodoc:
  options = merged_options(options)
  response = instrument(:increment, name, :amount => amount) do
    @data.incr(escape_key(namespaced_key(name, options)), amount)
  end
  response == Response::NOT_FOUND ? nil : response.to_i
rescue MemCache::MemCacheError
  nil
end