Package cherrypy :: Package lib :: Module sessions :: Class MemcachedSession
[hide private]
[frames] | no frames]

Class MemcachedSession

source code

object --+    
         |    
   Session --+
             |
            MemcachedSession

Instance Methods [hide private]
 
_get_id(self) source code
 
_set_id(self, value) source code
 
_exists(self) source code
 
_load(self) source code
 
_save(self, expiration_time) source code
 
_delete(self) source code
 
acquire_lock(self)
Acquire an exclusive lock on the currently-loaded session data.
source code
 
release_lock(self)
Release the lock on the currently-loaded session data.
source code
 
__len__(self)
Return the number of active sessions.
source code

Inherited from Session: __contains__, __delitem__, __getitem__, __init__, __setitem__, clean_up, clear, delete, generate_id, get, has_key, items, keys, load, now, pop, regenerate, save, setdefault, update, values

Inherited from Session (private): _regenerate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
setup(cls, **kwargs)
Set up the storage system for memcached-based sessions.
source code
Class Variables [hide private]
  mc_lock = <_RLock owner=None count=0>
  locks = {}
  servers = ['127.0.0.1:11211']

Inherited from Session: clean_freq, clean_thread, debug, id_observers, loaded, locked, missing, originalid, regenerated, timeout

Inherited from Session (private): _id

Properties [hide private]
  id
The current session ID.

Inherited from object: __class__

Method Details [hide private]

setup(cls, **kwargs)
Class Method

source code 

Set up the storage system for memcached-based sessions.

This should only be called once per process; this will be done automatically when using sessions.init (as the built-in Tool does).

_get_id(self)

source code 
Overrides: Session._get_id

_set_id(self, value)

source code 
Overrides: Session._set_id

Property Details [hide private]

id

The current session ID.

Get Method:
_get_id(self)
Set Method:
_set_id(self, value)