We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57c1967 commit 6aecb37Copy full SHA for 6aecb37
src/main/java/com/caching/LRUCache.java
@@ -63,7 +63,6 @@ public void put(int key, T value) {
63
System.out.println("Cache set to 0 capacity. No elements will be cached");
64
}
65
66
- T currentValue = cache.get(key);
67
if (!cache.containsKey(key)) {
68
cache.put(key, value);
69
System.out.println("Adding new key:" + key + " to cache");
0 commit comments