method
modify_value
v6.1.7.7 -
Show latest stable
- Class:
ActiveSupport::Cache::MemoryStore
modify_value(name, amount, options)private
No documentation available.
# File activesupport/lib/active_support/cache/memory_store.rb, line 183
def modify_value(name, amount, options)
options = merged_options(options)
synchronize do
if num = read(name, options)
num = num.to_i + amount
write(name, num, options)
num
end
end
end