Update docs

This commit is contained in:
Jon Staab
2026-06-10 14:12:47 -07:00
parent a33af11b1b
commit dbd043f105
35 changed files with 164 additions and 179 deletions
+3 -3
View File
@@ -40,9 +40,9 @@ cache.set('c', 3);
console.log(cache.get('a')); // 1
// Adding 'd' will evict 'b' (least recently used)
// Adding 'd' will evict 'a' (its stale key entry is at the front of the tracking queue)
cache.set('d', 4);
console.log(cache.has('b')); // false
console.log(cache.has('a')); // true (recently accessed)
console.log(cache.has('b')); // true
console.log(cache.has('a')); // false
```