We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed0319c commit 2cda6d0Copy full SHA for 2cda6d0
README.md
@@ -11,7 +11,7 @@ Lrujs is a fast and lightweight lru (least-recently-used) caching library for ja
11
- Super Fast
12
- Lightweight
13
- TTL support
14
-- Custom cache-miss value
+- Handle cache-miss
15
16
## Installation
17
@@ -88,7 +88,7 @@ const Cache = require("@opensnip/lrujs");
88
// Create cache object
89
const cache = new Cache({
90
maxLength: 10,
91
- ttl: 100,
+ ttl: 1000,
92
interval: 60000,
93
});
94
```
@@ -129,7 +129,7 @@ cache.set("a", 10);
129
cache.get("a"); // 10
130
131
132
-Customize cache miss value:
+Customize cache-miss value:
133
134
```js
135
// Add new data in cache
0 commit comments