method

modify_value

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ActiveSupport::Cache::MemoryStore
modify_value(name, amount, options) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/cache/memory_store.rb, line 191
        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
Register or log in to add new notes.