Class: Merb::MemcacheSession

Inherits:
SessionStoreContainer show all
Defined in:
lib/merb-core/dispatch/session/memcached.rb

Overview

Sessions stored in memcached.

Requires setup in your init.rb.

This for the ‘memcache-client’ gem:

Merb::BootLoader.after_app_loads do
  require 'memcache'
  Merb::MemcacheSession.store = 
     MemCache.new('127.0.0.1:11211', :namespace => 'my_app')
end

Or this for the ‘memcached’ gem:

Merb::BootLoader.after_app_loads do
  require 'memcache'
  Merb::MemcacheSession.store = 
     Memcached.new('127.0.0.1:11211', :namespace => 'my_app')
end

Constant Summary

Constants inherited from SessionStoreContainer

SessionStoreContainer::GENERATE_MAX_TRIES

Instance Attribute Summary

Attributes inherited from SessionStoreContainer

#_fingerprint

Attributes inherited from SessionContainer

#needs_new_cookie, #session_id

Method Summary

Methods inherited from SessionStoreContainer

#finalize, generate, #regenerate, setup

Methods inherited from SessionContainer

#clear!, #finalize, generate, inherited, #initialize, #regenerate, setup

Constructor Details

This class inherits a constructor from Merb::SessionContainer