Skip to content

Commit 4b0f131

Browse files
authored
Update LRUCache.h
1 parent 045104c commit 4b0f131

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/LRUCache.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class LRUCache {
1515
// --- New Methods for Stats ---
1616
double getHitRate() const;
1717
void resetStats();
18+
// Add this line in both LRUCache.h and LFUCache.h
19+
void reset();
1820

1921
private:
2022
void moveToFront(int key);

0 commit comments

Comments
 (0)