vibe.db.mongo.sessionstore

MongoDB based HTTP session store.

Types 1

classMongoSessionStore : SessionStore
Fields
private MongoCollection m_sessions
private Duration m_expirationTime
Methods
Duration expirationTime() @property @safe constThe duration without access after which a session expires.
void expirationTime(Duration dur) @property @safeditto
SessionStorageType storageType() @property @safe const
Session create() @safe
Session open(string id) @safe
void set(string id, string name, Variant value) @safe @trusted
Variant get(string id, string name, lazy Variant defaultVal) @safe @trusted
bool isKeySet(string id, string key) @safe
void remove(string id, string key) @safe
void destroy(string id) @safe
int iterateSession(string id, scope int delegate(string key) @safe del) @safe
Constructors
this(string url, string collection = "sessions")Constructs a new MongoDB session store.
this(MongoDatabase db, string collection = "sessions")Constructs a new MongoDB session store using an existing DB.
this(MongoCollection collection)Constructs a new MongoDB session store using a collection object.
Nested Templates
SessionEntry

Functions 2

private fnstring escape(string field_name) @safe
private fnstring unescape(string key) @safe