Skip to content

Commit f31dadb

Browse files
committed
docs: fix stats() sets description to include setWithEvicted()
The sets counter increments in both set() and setWithEvicted() methods. Updated documentation to reflect actual behavior.
1 parent 762df14 commit f31dadb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ console.log(cache.stats());
572572
**Returns:** `Object` - Statistics object with the following properties:
573573
- `hits` - Number of successful get() calls
574574
- `misses` - Number of failed get() calls
575-
- `sets` - Number of set() calls
575+
- `sets` - Number of set() and setWithEvicted() calls
576576
- `deletes` - Number of delete() calls
577577
- `evictions` - Number of evicted items
578578

0 commit comments

Comments
 (0)