aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar attilamolnar2013-04-10 17:55:33 +0200
committerGravatar attilamolnar2013-04-10 19:27:24 +0200
commit01ea7ce9c34bf85c8d9ec29f58bd82d6536a2162 (patch)
treed50df4bdee70ee387b814b1dcf49561469fbf2ab /include
parentBanCache: Remove BanCacheManager::RehashCache() (diff)
BanCache: Move expiration code into a function, call it from RemoveEntries()
Diffstat (limited to 'include')
-rw-r--r--include/bancache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/bancache.h b/include/bancache.h
index ea09d389f..9cff91802 100644
--- a/include/bancache.h
+++ b/include/bancache.h
@@ -58,8 +58,9 @@ typedef std::tr1::unordered_map<std::string, BanCacheHit*, std::tr1::hash<std::s
*/
class CoreExport BanCacheManager
{
- private:
BanCacheHash* BanHash;
+ bool RemoveIfExpired(BanCacheHash::iterator& it);
+
public:
/** Creates and adds a Ban Cache item.