13 using SessionTimePoint = std::chrono::high_resolution_clock::time_point;
16 std::multimap<SessionTimePoint, std::string, std::greater<SessionTimePoint>> timeIp;
17 std::unordered_map<std::string, SessionTimePoint> ipTime;
31 void updateSessionTime(
const std::string& ip);
33 ~SessionTime() =
default;
38 std::unordered_map<std::string, std::unordered_map<std::string, std::string>> userSession;
44 void setAttribute(
const std::string& ip,
const std::string& name,
const std::string& value);
46 std::string getAttribute(
const std::string& ip,
const std::string& name);
48 void deleteSession(
const std::string& ip);
50 void deleteAttribute(
const std::string& ip,
const std::string& name);