instance method
write_serialized_entry
Ruby on Rails 7.0.10
Since v7.0.10 PrivateSignature
write_serialized_entry(key, payload, **options)
No documentation comment.
Parameters
-
keyreq -
payloadreq -
optionskeyrest
Source
# File activesupport/lib/active_support/cache/file_store.rb, line 91
def write_serialized_entry(key, payload, **options)
return false if options[:unless_exist] && File.exist?(key)
ensure_cache_path(File.dirname(key))
File.atomic_write(key, cache_path) { |f| f.write(payload) }
true
end
Defined in activesupport/lib/active_support/cache/file_store.rb line 91
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore