add reindex method to PersistentMap

This commit is contained in:
2020-10-07 12:30:33 +02:00
parent 5cc16ad2f7
commit 4749dca73a
3 changed files with 138 additions and 54 deletions

View File

@@ -47,4 +47,10 @@ public class LRUCache<K, V> {
public double cacheHitRate() {
return (double) countGetHits / (double) countGet;
}
public void clear() {
cache.clear();
countGet = 0;
countGetHits = 0;
}
}