Class: ActionController::Caching::Fragments::MemCacheFragmentStore

Inherits:
UnthreadedMemCacheFragmentStore
  • Object
show all
Defined in:
lib/mem_cache_fragment_store.rb

Overview

MemCache-based fragment cache storage class.

This builds upon the top-level MemCache class provided by the library file memcache.rb. Fragment cache data is marshalled and stored in a memcached cache.

Constant Summary collapse

VERSION =

The version of MemCacheFragmentStore you are using.

'1.0.1'

Instance Method Summary collapse

Constructor Details

#initialize(cache, ttl = 0) ⇒ MemCacheFragmentStore

Returns a new instance of MemCacheFragmentStore.



62
63
64
65
66
67
# File 'lib/mem_cache_fragment_store.rb', line 62

def initialize(cache, ttl = 0)
  super
  return unless ActionController::Base.allow_concurrency
  @mutex = Mutex.new
  self.send :include, ThreadSafety
end