method
increment
v2.3.8 -
Show latest stable
- Class:
ActiveSupport::Cache::MemCacheStore
increment(key, amount = 1)public
No documentation available.
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 105
def increment(key, amount = 1) # :nodoc:
log("incrementing", key, amount)
response = @data.incr(key, amount)
response == Response::NOT_FOUND ? nil : response
rescue MemCache::MemCacheError
nil
end