/// Cache of Auth::User credentials, keyed by Auth::User::userKey
class CredentialsCache
{
-private:
CBDATA_CLASS(CredentialsCache);
- /// key is User::userKey(), mapped value is User::Pointer
- typedef std::unordered_map<SBuf, Auth::User::Pointer> StoreType;
-
public:
explicit CredentialsCache(const char *name, const char * const eventName);
/// whether a cleanup (garbage collection) event has been scheduled
bool gcScheduled_;
+ /// key is User::userKey(), mapped value is User::Pointer
+ typedef std::unordered_map<SBuf, Auth::User::Pointer> StoreType;
StoreType store_;
// c-string raw pointer used as event name
{
CBDATA_CLASS(ConnOpener);
-protected:
- virtual void start();
- virtual void swanSong();
-
public:
void noteAbort() { mustStop("externally aborted"); }
void setHost(const char *); ///< set the hostname note for this connection
const char * getHost() const; ///< get the hostname noted for this connection
+protected:
+ virtual void start();
+ virtual void swanSong();
+
private:
// Undefined because two openers cannot share a connection
ConnOpener(const ConnOpener &);