48 BanCacheHit(
const std::string& type,
const std::string& reason, time_t seconds);
50 bool IsPositive()
const {
return (!Reason.empty()); }
59 typedef TR1NS::unordered_map<std::string, BanCacheHit*, TR1NS::hash<std::string> > BanCacheHash;
62 bool RemoveIfExpired(BanCacheHash::iterator& it);
72 BanCacheHit *AddHit(
const std::string &ip,
const std::string &type,
const std::string &reason, time_t seconds = 0);
79 void RemoveEntries(
const std::string& type,
bool positive);