instance method
read_entry
Ruby on Rails 6.0.6
Since v5.2.8.1 PrivateSignature
read_entry(key, **options)
No documentation comment.
Parameters
-
keyreq -
optionskeyrest
Source
# File activesupport/lib/active_support/cache/memory_store.rb, line 123
def read_entry(key, **options)
entry = @data[key]
synchronize do
if entry
entry = entry.dup
entry.dup_value!
@key_access[key] = Time.now.to_f
else
@key_access.delete(key)
end
end
entry
end
Defined in activesupport/lib/active_support/cache/memory_store.rb line 123
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemoryStore