From de2d997ab01a6c9a46f59782350b8cc37197e865 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 14 Mar 2024 23:34:53 -0500 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index d6345212..a877528a 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -96,7 +96,11 @@ public: void erase(std::string const &key_) { - _cache.erase(key_); + uint64_t hash; + + hash = wyhash(key_.c_str(),key_.size(),0xdeadbeef,_wyp); + + _cache.erase(hash); } private: