instance method
write_entry
Ruby on Rails 5.2.8.1
Since v3.0.20 PrivateSignature
write_entry(key, entry, options)
No documentation comment.
Parameters
-
keyreq -
entryreq -
optionsreq
Source
# File activesupport/lib/active_support/cache/file_store.rb, line 81
def write_entry(key, entry, options)
return false if options[:unless_exist] && File.exist?(key)
ensure_cache_path(File.dirname(key))
File.atomic_write(key, cache_path) { |f| Marshal.dump(entry, f) }
true
end
Defined in activesupport/lib/active_support/cache/file_store.rb line 81
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore