|
Malloy
|
#include <storage.hpp>

Public Member Functions | |
| virtual std::shared_ptr< session > | create (id_type id)=0 |
| virtual std::shared_ptr< session > | get (const id_type &id)=0 |
| virtual void | destroy (id_type id)=0 |
| virtual std::size_t | destroy_expired (const std::chrono::seconds &max_lifetime)=0 |
A session storage interface.
|
pure virtual |
Create a new session.
| id | The session ID. |
Implemented in malloy::http::sessions::storage_memory.
|
pure virtual |
Destroy an existing session.
| id | The session ID. |
Implemented in malloy::http::sessions::storage_memory.
|
pure virtual |
Destroy any session older than a specified value. Sessions older than max_lifetime need to be destroyed.
| max_lifetime | The maximum lifetime of a session. |
Implemented in malloy::http::sessions::storage_memory.
|
pure virtual |
Returns an existing session (if any)
| id | The session ID. |
Implemented in malloy::http::sessions::storage_memory.