instance method decrement

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

decrement(key, amount = 1)

No documentation comment.

Parameters

key req
amount opt = 1
Source
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 79
        def decrement(key, amount = 1)
          if value = super
            local_cache.mute { local_cache.write(key, value.to_s) } if local_cache
            value
          else
            nil
          end
        end

Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 79 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Cache::Strategy::LocalCache

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close