class ActiveSupport::Cache::FileStore

def increment(name, amount = 1, options = nil)

If the key is not found nothing is done.
Increments an already existing integer value that is stored in the cache.
def increment(name, amount = 1, options = nil)
  modify_value(name, amount, options)
end