Re: [Cppcms-users] Using MongoDB
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-09-19 18:26:02
|
----- Original Message ----- > From: Shiv Shankar Dayal <shi...@gm...> > To: cpp...@li... > Cc: > Sent: Wednesday, September 19, 2012 6:47 PM > Subject: [Cppcms-users] Using MongoDB > > Hi, > > I am a newbie with CppCMS. I want to create a login system where I can > store sessions in MongoDB as well as on client size. Why do you actually need specifically MongoDB database to store sessions? File system session storage with combination of ext4 is pretty fast storage - also other backends under contrib section are very fast as well - berlekey DB or even a special sqlite3 module. > I just do not want to use any of CppDB module. Is this feasible? Yes, write your own plug-in storage, it should be quite trivial. Take a look on contrib section to see examples. Also take a look on "tests/loadable_storage.cpp" file to see a trivial example how to implement an API. > > -- > Best regards, > Shiv Shankar Dayal > Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |