method

read_entry

rails latest stable - Class: ActiveSupport::Cache::Strategy::LocalCache

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

read_entry(key, **options)
private

No documentation available.

# 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