instance method exist_in_backend?

Ruby on Rails 8.1.4.1

Since v8.0.5.2 Private — implementation detail, not part of the public API

Available in: v8.0.5.2 v8.1.4.1 edge

Signature

exist_in_backend?(key)

The request-local cache still holds the entry this request loaded, so a lookup through it cannot see a delete made by another request.

Parameters

key req
Source
# File actionpack/lib/action_dispatch/middleware/session/cache_store.rb, line 85
        def exist_in_backend?(key)
          if @cache.respond_to?(:with_local_cache)
            @cache.with_local_cache { @cache.exist?(key) }
          else
            @cache.exist?(key)
          end
        end

Defined in actionpack/lib/action_dispatch/middleware/session/cache_store.rb line 85 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Session::CacheStore

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close