TreeFrogFramework
2.8
|
#include <tsessionstore.h>
Public Member Functions | |
TSessionStore () | |
virtual | ~TSessionStore () |
virtual TSession | find (const QByteArray &id)=0 |
virtual bool | store (TSession &sesion)=0 |
virtual bool | remove (const QByteArray &id)=0 |
virtual int | gc (const QDateTime &expire)=0 |
Static Public Member Functions | |
static int64_t | lifeTimeSecs () |
The TSessionStore is an abstract class that stores HTTP sessions.
|
inline |
|
inlinevirtual |
|
pure virtual |
Returns the session which has the ID id and is newer than or equal to the expiration datetime in the session store.
If the store contains no such session, the function returns a empty session. This function should be called from any reimplementations of find().
Implemented in TSessionSqlObjectStore, TSessionRedisStore, TSessionMongoStore, and TSessionMemcachedStore.
|
pure virtual |
Implemented in TSessionSqlObjectStore, TSessionRedisStore, TSessionMongoStore, and TSessionMemcachedStore.
|
static |
|
pure virtual |
Removes all sessions older than the expiration datetime.
Removes the session with the ID id.
This function should be called from any reimplementations of remove().
Implemented in TSessionSqlObjectStore, TSessionRedisStore, TSessionMongoStore, and TSessionMemcachedStore.
|
pure virtual |
Stores the session in the session store.
This function should be called from any reimplementations of store().
Implemented in TSessionSqlObjectStore, TSessionRedisStore, TSessionMongoStore, and TSessionMemcachedStore.