From fbade1770e1853e7fdc14570f99f53de814774f3 Mon Sep 17 00:00:00 2001 From: knbr13 Date: Sat, 6 Apr 2024 03:02:15 +0300 Subject: [PATCH] add Purge func to the interface --- cache.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cache.go b/cache.go index 5ca65ee..42a3b59 100644 --- a/cache.go +++ b/cache.go @@ -41,6 +41,9 @@ type Cache[K comparable, V any] interface { // Keys returns a slice containing the keys of the cache in arbitrary order. Keys() []K + // Purge clears the cache completely. + Purge() + // Count returns the number of key-value pairs in the cache. Count() int