CppCMS
Public Member Functions
cppcms::sessions::session_storage_factory Class Reference

The factory is an interface to a factory that creates session_storage objects, it should be thread safe. More...

#include <cppcms/session_storage.h>

List of all members.

Public Member Functions

virtual booster::shared_ptr
< session_storage
get ()=0
virtual bool requires_gc ()=0
virtual void gc_job ()
virtual ~session_storage_factory ()

Detailed Description

The factory is an interface to a factory that creates session_storage objects, it should be thread safe.


Constructor & Destructor Documentation

Delete the object, cleanup


Member Function Documentation

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.

Get a pointer to session_storage. Note if the returned pointer is same for different calls session_storage implementation should be thread safe.

Return true if session_storage requires garbage collection - removal of expired session time-to-time


The documentation for this class was generated from the following file: