Class: ActionController::Session::MemcachedSessionStore
- Inherits:
-
AbstractStore
- Object
- AbstractStore
- ActionController::Session::MemcachedSessionStore
- Defined in:
- lib/memcached_session_store.rb
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ MemcachedSessionStore
constructor
A new instance of MemcachedSessionStore.
Constructor Details
#initialize(app, options = {}) ⇒ MemcachedSessionStore
Returns a new instance of MemcachedSessionStore.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/memcached_session_store.rb', line 6 def initialize(app, = {}) [:expire_after] ||= [:expires] super @pool = [:cache] || Memcached::Rails.new() begin @pool.stats rescue Memcached::SomeErrorsWereReported raise "#{self} unable to find server during initialization." end @mutex = Mutex.new super end |