- Inheritance
-
< Rack::Session::Abstract::ID
< Object
Rack::Session::Memcache provides simple cookie
based session management. Session data is
stored in memcached. The corresponding session key is maintained in the
cookie. You may treat Session::Memcache as you
would Session::Pool with the following caveats.
- Setting :expire_after to 0 would note to the Memcache server to hang onto the session data
until it would drop it according to it‘s own specifications. However,
the cookie sent to the client would expire immediately.
Note that memcache does drop data before it may be listed to expire. For a
full description of behaviour, please see memcache‘s documentation.
Constants
Name |
|
Description |
DEFAULT_OPTIONS |
= Abstract::ID::DEFAULT_OPTIONS.merge \ :namespace => 'rack:session', :memcache_server => 'localhost:11211' |
|
Attributes
Name |
Visibility |
R/W |
Description |
mutex |
public |
R |
|
pool |
public |
R |
|
Methods
Class
Visibility |
Signature |
public |
new (app, options={}) |
Instance
Class Method Detail
new(app, options={})
Instance Method Detail
generate_sid()
get_session(env, sid)
set_session(env, session_id, new_session, options)