instance method write_cache_value

Ruby on Rails 8.1.2

Since v5.2.8.1 Private

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

write_cache_value(name, value, **options)

No documentation comment.

Parameters

name req
value req
options keyrest
Source
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 216
          def write_cache_value(name, value, **options)
            name = normalize_key(name, options)
            cache = local_cache
            if value
              cache.write_entry(name, serialize_entry(new_entry(value, **options), **options))
            else
              cache.delete_entry(name)
            end
          end

Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 216 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Cache::Strategy::LocalCache

Type at least 2 characters to search.

↑↓ navigate · open · esc close