Skip to content

Commit d175d2e

Browse files
committed
docs: fix valuesByTTL() noTTL description
Correctly state that noTTL contains items where expiry === 0, regardless of cache ttl setting
1 parent dd492ba commit d175d2e

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
@@ -639,7 +639,7 @@ console.log(cache.valuesByTTL());
639639
**Returns:** `Object` - Object with three properties:
640640
- `valid` - Array of valid (non-expired) values
641641
- `expired` - Array of expired values
642-
- `noTTL` - Array of values without TTL (when `ttl=0`)
642+
- `noTTL` - Array of values without TTL (`expiry === 0`, regardless of cache `ttl` setting)
643643

644644
---
645645

0 commit comments

Comments
 (0)