Skip to content

Commit 2cda6d0

Browse files
Update README.md
1 parent ed0319c commit 2cda6d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Lrujs is a fast and lightweight lru (least-recently-used) caching library for ja
1111
- Super Fast
1212
- Lightweight
1313
- TTL support
14-
- Custom cache-miss value
14+
- Handle cache-miss
1515

1616
## Installation
1717

@@ -88,7 +88,7 @@ const Cache = require("@opensnip/lrujs");
8888
// Create cache object
8989
const cache = new Cache({
9090
maxLength: 10,
91-
ttl: 100,
91+
ttl: 1000,
9292
interval: 60000,
9393
});
9494
```
@@ -129,7 +129,7 @@ cache.set("a", 10);
129129
cache.get("a"); // 10
130130
```
131131

132-
Customize cache miss value:
132+
Customize cache-miss value:
133133

134134
```js
135135
// Add new data in cache

0 commit comments

Comments
 (0)