mongostore 1.2.1

SessionStore for MongoDB


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

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
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 343 downloads total

Score:
0.8
Short URL:
mongostore.dub.pm