diff options
Diffstat (limited to 'libadhocutil/cache.impl.h')
-rw-r--r-- | libadhocutil/cache.impl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libadhocutil/cache.impl.h b/libadhocutil/cache.impl.h index 7b0340c..c07d9c0 100644 --- a/libadhocutil/cache.impl.h +++ b/libadhocutil/cache.impl.h @@ -119,6 +119,14 @@ Cache<T, K>::size() const template<typename T, typename K> void +Cache<T, K>::remove(const K & k) +{ + Lock(lock); + cached.template get<byKey>().erase(k); +} + +template<typename T, typename K> +void Cache<T, K>::prune() const { auto now = time(NULL); |