instance method
set_cache_value
Ruby on Rails 4.2.9
Since v4.2.9 Last seen in v4.2.9Signature
set_cache_value(value, name, amount, options)
No documentation comment.
Parameters
-
valuereq -
namereq -
amountreq -
optionsreq
Source
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 123
def set_cache_value(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 123
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Strategy::LocalCache