Method: ActiveSupport::Cache::MemCacheStore::DupLocalCache::DupLocalStore#fetch_entry
- Defined in:
- lib/active_support/cache/mem_cache_store.rb
#fetch_entry(key) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/active_support/cache/mem_cache_store.rb', line 53 def fetch_entry(key) entry = super do new_entry = yield if entry.is_a?(Entry) new_entry.dup_value! end new_entry end entry = entry.dup if entry.is_a?(Entry) entry.dup_value! end entry end |