Class: ActiveSupport::Cache::MemcachedStore::DupLocalStore
- Inherits:
-
Strategy::LocalCache::LocalStore
- Object
- Strategy::LocalCache::LocalStore
- ActiveSupport::Cache::MemcachedStore::DupLocalStore
- Defined in:
- lib/active_support/cache/memcached_store.rb
Instance Method Summary collapse
Instance Method Details
#fetch_entry(key) ⇒ Object
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 |
# File 'lib/active_support/cache/memcached_store.rb', line 227 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) ⇒ Object
220 221 222 223 224 225 |
# File 'lib/active_support/cache/memcached_store.rb', line 220 def write_entry(_key, entry) if entry.is_a?(Entry) entry.dup_value! end super end |