instance method
write
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
write(name, value, options = nil)
No documentation comment.
Parameters
-
namereq -
valuereq -
optionsopt = nil
Source
# File activesupport/lib/active_support/cache/compressed_mem_cache_store.rb, line 14
def write(name, value, options = nil)
value = ActiveSupport::Gzip.compress(Marshal.dump(value)) unless raw?(options)
super(name, value, (options || {}).merge(:raw => true))
end
Defined in activesupport/lib/active_support/cache/compressed_mem_cache_store.rb line 14
· View on GitHub
· Improve this page
· Find usages on GitHub