bsddb
Berkeley DB-based session store (smisk.core-level). This module was the primary IPC/session backend in Smisk 1.1.3 before being moved to smisk.ipc in later versions.
Requires bsddb3 Python bindings.
Classes
- class
smisk.core.bsddb.BSDDBSessionStore(smisk.core.SessionStore) -
A session store using Berkeley DB for persistent, process-shared storage.
__init__(path)Parameters path (str) — filesystem path for the database file read(session_id) → dataRaises
InvalidSessionErrorif not found.write(session_id, data)Persist session data.
destroy(session_id)Remove a session.
refresh(session_id)Update the session's TTL timestamp.