#include <WebModules.h>
◆ iterator
◆ value
◆ CWebSessionMap()
CWebSessionMap::CWebSessionMap |
( |
unsigned int | uTTL = 5000 | ) |
|
|
inline |
◆ AddItem()
This function adds an item to the cache using the default time-to-live value.
- Parameters
-
Item | the item to add to the cache |
◆ Cleanup()
Cycles through the queue removing all of the stale entries.
◆ Clear()
◆ FinishUserSessions()
void CWebSessionMap::FinishUserSessions |
( |
const CUser & | User | ) |
|
◆ GetItem()
Performs a Cleanup() and returns a pointer to the object, or nullptr.
- Parameters
-
Item | The item to check for |
- Returns
- Pointer to the item or nullptr if there is no suitable one
◆ GetItems()
◆ GetTTL()
◆ HasItem()
Performs a Cleanup() and then checks to see if your item exists.
- Parameters
-
Item | The item to check for |
- Returns
- true if item exists
◆ RemItem()
Removes a specific item from the cache.
- Parameters
-
Item | The item to be removed |
- Returns
- true if item existed and was removed, false if it never existed
◆ SetTTL()
◆ m_mItems
Map of cached items.
The value portion of the map is for the expire time
◆ m_uTTL
Default time-to-live duration.
The documentation for this class was generated from the following file: