mongostore 1.2.1

SessionStore for MongoDB


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

MongoStore

SessionStore for MongoDB

Usage

auto database = connectMongoDB("localhost").getDatabase("database");

auto settings = new HTTPServerSettings;
settings.sessionStore = new MongoSessionStore(database);

// In request:

auto session = req.session ? req.session : res.startSession();
session.set("user", Bson(["username": Bson("foo"), "email": Bson("bar@example.com")]));
logInfo("%s", session.get!Bson("user")); // [username: "foo", email: "bar@example.com"]

Authors:webfreak

Dependencies:vibe-d

Versions:
1.2.1 2017-Jul-11
1.2.0 2017-Jul-03
1.1.0 2016-May-01
1.0.0 2015-Oct-31
~master 2017-Jul-11
Show all 5 versions
Stats:

statistics are temporarily disabled.