instance method write_serialized_entry

Ruby on Rails 8.0.4

Since v7.0.10 Private

Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

write_serialized_entry(key, payload, **options)

No documentation comment.

Parameters

key req
payload req
options keyrest
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close