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 APISignature
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
-
keyreq
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