instance method
write_entry
Ruby on Rails 3.1.12
Since v3.0.20Signature
write_entry(key, entry, options)
No documentation comment.
Parameters
-
keyreq -
entryreq -
optionsreq
Source
# File activesupport/lib/active_support/cache/file_store.rb, line 99
def write_entry(key, entry, options)
file_name = key_file_path(key)
ensure_cache_path(File.dirname(file_name))
File.atomic_write(file_name, cache_path) {|f| Marshal.dump(entry, f)}
true
end
Defined in activesupport/lib/active_support/cache/file_store.rb line 99
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore