From 3082d60de76852ec9330120f54628c89d4bdf708 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 15 Feb 2024 19:54:37 -0600 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index c63e069a..ca4d08d6 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -41,8 +41,13 @@ public: _cache.insert({key_,val_}); } - - void erase(const char *fusepath); + void + erase(const char *key_) + { + _cache.erase(key_); + } + + void cleanup(const int prob = 1); void clear(void);