instance method read_entry

Ruby on Rails 6.1.7.10

Since v5.2.8.1 Last seen in v6.1.7.10 Private

Available in: v5.2.8.1 v6.0.6 v6.1.7.10

Signature

read_entry(key, **options)

No documentation comment.

Parameters

key req
options keyrest
Source
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 131
          def read_entry(key, **options)
            if cache = local_cache
              hit = true
              value = cache.fetch_entry(key) do
                hit = false
                super
              end
              options[:event][:store] = cache.class.name if hit && options[:event]
              value
            else
              super
            end
          end

Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 131 · 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