CppCMS
|
The factory is an interface to a factory that creates session_storage objects, it should be thread safe. More...
#include <cppcms/session_storage.h>
Public Member Functions | |
virtual booster::shared_ptr < session_storage > | get ()=0 |
virtual bool | requires_gc ()=0 |
virtual void | gc_job () |
virtual | ~session_storage_factory () |
The factory is an interface to a factory that creates session_storage objects, it should be thread safe.
virtual cppcms::sessions::session_storage_factory::~session_storage_factory | ( | ) | [inline, virtual] |
Delete the object, cleanup
virtual void cppcms::sessions::session_storage_factory::gc_job | ( | ) | [inline, virtual] |
Actual garbage collection job (if required). If requires_gc returns true it will be called once-in-a-while to remove all expired objects from the DB.
virtual booster::shared_ptr<session_storage> cppcms::sessions::session_storage_factory::get | ( | ) | [pure virtual] |
Get a pointer to session_storage. Note if the returned pointer is same for different calls session_storage implementation should be thread safe.
virtual bool cppcms::sessions::session_storage_factory::requires_gc | ( | ) | [pure virtual] |
Return true if session_storage requires garbage collection - removal of expired session time-to-time