123456789_123456789_123456789_123456789_123456789_

Class: ActiveSupport::Cache::MemCacheStore::DupLocalCache::DupLocalStore

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: ActiveSupport::Cache::Strategy::LocalCache::LocalStore
Defined in: activesupport/lib/active_support/cache/mem_cache_store.rb

Class Method Summary

Instance Method Summary

Constructor Details

This class inherits a constructor from ActiveSupport::Cache::Strategy::LocalCache::LocalStore

Instance Method Details

#fetch_entry(key)

[ GitHub ]

  
# File 'activesupport/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

#write_entry(_key, entry)

[ GitHub ]

  
# File 'activesupport/lib/active_support/cache/mem_cache_store.rb', line 46

def write_entry(_key, entry)
  if entry.is_a?(Entry)
    entry.dup_value!
  end
  super
end