vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

MongoSessionStore.this - multiple declarations

Function MongoSessionStore.this

Constructs a new MongoDB session store.

this (
  string url,
  string collection = "sessions"
) @safe;

Parameters

NameDescription
url URL of the MongoDB database (e.g. "mongodb://localhost/mydb")
collection Optional collection name to store the sessions in

Function MongoSessionStore.this

Constructs a new MongoDB session store using an existing DB.

this (
  MongoDatabase db,
  string collection = "sessions"
) @safe;

Parameters

NameDescription
db the connected MongoDB database.
collection the collection name for the sessions collection.

Function MongoSessionStore.this

Constructs a new MongoDB session store using a collection object.

this (
  MongoCollection collection
) @safe;

Parameters

NameDescription
collection the collection to store sessions in.
Authors

Sönke Ludwig

Copyright

© 2017 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.