/*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
/// 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);
void cleanup();
/**
- * Cleanup cache data after a reconfiguration has occured.
+ * Cleanup cache data after a reconfiguration has occurred.
* Similar to cleanup() but also flushes stale config dependent
* state from retained entries.
*/
/// 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