Class | Merb::MemcacheSession
In: | lib/merb-core/dispatch/session/memcached.rb
Parent: | SessionStoreContainer

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

[Validate]