method
fetch_entry
v6.1.3.1 -
Show latest stable
- Class:
ActiveSupport::Cache::Strategy::LocalCache::LocalStore
fetch_entry(key, options = nil)public
No documentation available.
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 77
def fetch_entry(key, options = nil) # :nodoc:
entry = @data.fetch(key) { @data[key] = yield }
dup_entry = entry.dup
dup_entry&.dup_value!
dup_entry
end