instance method
write
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
write(key, value, options = nil)
No documentation comment.
Parameters
-
keyreq -
valuereq -
optionsopt = nil
Source
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 48
def write(key, value, options = nil)
value = value.to_s if respond_to?(:raw?) && raw?(options)
local_cache.mute { local_cache.write(key, value || NULL) } if local_cache
super
end
Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 48
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Strategy::LocalCache