From 19ee0575250389dbd074cb358d4050419af46c26 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 14 Mar 2024 20:07:34 -0500 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index 1b027b14..bc268c04 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -93,6 +93,13 @@ public: return rv; } + void + erase(std::string const &key_) + { + _cache.erase(key_); + } + + private: unsigned _max_size; Map _cache;