Skip to content

Commit 045104c

Browse files
authored
Update LFUCache.h
1 parent 303dad8 commit 045104c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/LFUCache.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class LFUCache {
1919
private:
2020
void touch(int key);
2121
void evict();
22+
// Add this line in both LRUCache.h and LFUCache.h
23+
void reset();
2224

2325
size_t capacity;
2426
std::unordered_map<int, std::pair<int, int>> cache; // key -> {value, frequency}

0 commit comments

Comments
 (0)