class documentation

class DurusSessionStore(SessionStore):

Constructor: DurusSessionStore(connection)

View In Hierarchy

A session store for Durus, a simple object database.

Unlike the dulcinea Durus session store, session objects themselves are not subclasses of Persistent; here they are managed by DurusSessionStore directly.

Method __init__ __init__ takes a Durus connection object.
Method delete_session Delete the given session from the shelf.
Method load_session Load the session from the shelf.
Method save_session Save the session to the shelf.
Class Variable is_multiprocess_safe Undocumented
Class Variable is_thread_safe Undocumented
Instance Variable connection Undocumented
Instance Variable sessions_dict Undocumented

Inherited from SessionStore:

Method delete_old_sessions Delete all sessions that have not been modified for N minutes. The default implementation does nothing, meaning the store cannot delete old sessions.
Method has_session Return true if the session exists in the store, else false.
Method iter_sessions Return an iterable of (id, session) for all sessions in the store.
Method setup Initialize the session store; e.g., create required database tables. If a previous store exists, overwrite it or raise an error. The default implmenetation does nothing, meaning no setup is necessary.
def __init__(self, connection):

__init__ takes a Durus connection object.

def delete_session(self, session):

Delete the given session from the shelf.

def load_session(self, id, default=None):

Load the session from the shelf.

def save_session(self, session):

Save the session to the shelf.

is_multiprocess_safe: bool =
is_thread_safe: bool =
connection =

Undocumented

sessions_dict =

Undocumented