instance method
read_serialized_entry
Ruby on Rails 7.2.3
Since v7.0.10 PrivateSignature
read_serialized_entry(key, raw: false, **options)
No documentation comment.
Parameters
-
keyreq -
rawkey = false -
optionskeyrest
Source
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 146
def read_serialized_entry(key, raw: false, **options)
if cache = local_cache
hit = true
entry = cache.fetch_entry(key) do
hit = false
super
end
options[:event][:store] = cache.class.name if hit && options[:event]
entry
else
super
end
end
Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 146
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Strategy::LocalCache