instance method
write_serialized_entry
Ruby on Rails 8.1.2
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 124
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 124
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore