instance method
increment_or_decrement
Ruby on Rails 4.0.13
Since v4.0.13 Last seen in v4.1.16 PrivateAvailable in: v4.0.13 v4.1.16
Signature
increment_or_decrement(value, name, amount, options)
No documentation comment.
Parameters
-
valuereq -
namereq -
amountreq -
optionsreq
Source
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 144
def increment_or_decrement(value, name, amount, options)
if local_cache
local_cache.mute do
if value
local_cache.write(name, value, options)
else
local_cache.delete(name, options)
end
end
end
end
Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 144
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Strategy::LocalCache