summaryrefslogtreecommitdiff
path: root/libadhocutil/cache.impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'libadhocutil/cache.impl.h')
-rw-r--r--libadhocutil/cache.impl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libadhocutil/cache.impl.h b/libadhocutil/cache.impl.h
index c07d9c0..0a2b0b3 100644
--- a/libadhocutil/cache.impl.h
+++ b/libadhocutil/cache.impl.h
@@ -127,6 +127,14 @@ Cache<T, K>::remove(const K & k)
template<typename T, typename K>
void
+Cache<T, K>::clear()
+{
+ Lock(lock);
+ cached.clear();
+}
+
+template<typename T, typename K>
+void
Cache<T, K>::prune() const
{
auto now = time(NULL);