]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/auth/CredentialsCache.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / auth / CredentialsCache.h
index 8a7c44d4bc02cc1539ff27fd580d7189686be5bf..3c44849c14182e4ba842be06c8e9011277fc35c0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -20,12 +20,8 @@ namespace Auth {
 /// 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);
 
@@ -55,7 +51,7 @@ public:
     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.
      */
@@ -70,6 +66,8 @@ private:
     /// 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