#include <SSLCacheProvider.h>
Interface to be implemented by providers of external session caches
Definition at line 28 of file SSLCacheProvider.h.
virtual wangle::SSLCacheProvider::~SSLCacheProvider |
( |
| ) |
|
|
virtualdefault |
Retrieve a session from the external cache. When done, call the cache manager's onGetSuccess() or onGetFailure() callback.
- Parameters
-
- Returns
- true if the lookup of the session is initiated successfully (though not necessarily completed; the completion may happen either before or after this method returns), or false if the lookup cannot be initiated due to an error.
Retrieve a session from the external cache. Returns a future that will hold the result of the request.
- Parameters
-
sessionId | Session ID to fetch |
- Returns
- MultiFuture referring to the result of this request.
virtual bool wangle::SSLCacheProvider::setAsync |
( |
const std::string & |
sessionId, |
|
|
const std::string & |
value, |
|
|
std::chrono::seconds |
expiration |
|
) |
| |
|
pure virtual |
Store a session in the external cache.
- Parameters
-
sessionId | Identifier that can be used later to fetch the session with getAsync() |
value | Serialized session to store |
expiration | Relative expiration time: seconds from now |
- Returns
- true if the storing of the session is initiated successfully (though not necessarily completed; the completion may happen either before or after this method returns), or false if the storing cannot be initiated due to an error.
The documentation for this class was generated from the following file: