instance method
read_entry
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
read_entry(key, options)
No documentation comment.
Parameters
-
keyreq -
optionsreq
Source
# File activesupport/lib/active_support/cache/memory_store.rb, line 119
def read_entry(key, options)
entry = @data[key]
synchronize do
if entry
@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 119
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemoryStore