method
write_entry
v4.1.8 -
Show latest stable
- Class:
ActiveSupport::Cache::MemCacheStore::LocalCacheWithRaw
write_entry(key, entry, options)protected
No documentation available.
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 186
def write_entry(key, entry, options) # :nodoc:
retval = super
if options[:raw] && local_cache && retval
raw_entry = Entry.new(entry.value.to_s)
raw_entry.expires_at = entry.expires_at
local_cache.write_entry(key, raw_entry, options)
end
retval
end