|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
Where sessions live. Implementations must be thread-safe. More...
#include <SessionManager.hpp>

Public Member Functions | |
| virtual | ~SessionStore ()=default |
| virtual std::optional< SessionData > | load (const std::string &id)=0 |
| The session's data, or std::nullopt if it does not exist or expired. | |
| virtual void | save (const std::string &id, const SessionData &data, std::chrono::seconds ttl)=0 |
Creates or replaces the session; it expires after ttl without use. | |
| virtual void | touch (const std::string &id, std::chrono::seconds ttl)=0 |
| Extends the lifetime of an existing session. | |
| virtual void | destroy (const std::string &id)=0 |
Where sessions live. Implementations must be thread-safe.
|
virtualdefault |
|
pure virtual |
Implemented in orbit::middleware::MemorySessionStore.
|
pure virtual |
The session's data, or std::nullopt if it does not exist or expired.
Implemented in orbit::middleware::MemorySessionStore.
|
pure virtual |
Creates or replaces the session; it expires after ttl without use.
Implemented in orbit::middleware::MemorySessionStore.
|
pure virtual |
Extends the lifetime of an existing session.
Implemented in orbit::middleware::MemorySessionStore.