+
+ /** Creates and adds a Ban Cache item.
+ * @param ip The IP the item is for.
+ * @param type The type of ban cache item. std::string. .empty() means it's a negative match (user is allowed freely).
+ * @param reason The reason for the ban. Left .empty() if it's a negative match.
+ */
+ BanCacheHit *AddHit(const std::string &ip, const std::string &type, const std::string &reason);
+
+ // Overridden to allow an optional number of seconds before expiry
+ BanCacheHit *AddHit(const std::string &ip, const std::string &type, const std::string &reason, time_t seconds);