From 0b894bf22c57a6a3cc988a7229a5e8bfa56135e2 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 15 Feb 2024 20:02:29 -0600 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index ca4d08d6..2ca5e0c9 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -40,6 +40,12 @@ public: { _cache.insert({key_,val_}); } + + std::string* + find(char const *key_) + { + auto i = _cache.find(key_); + } void erase(const char *key_) @@ -47,9 +53,17 @@ public: _cache.erase(key_); } + void + cleanup() + { - void cleanup(const int prob = 1); - void clear(void); + } + + void + clear() + { + + } private: unsigned _max_size;