Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rajkumardusad authored Apr 4, 2023
1 parent ed0319c commit 2cda6d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Lrujs is a fast and lightweight lru (least-recently-used) caching library for ja
- Super Fast
- Lightweight
- TTL support
- Custom cache-miss value
- Handle cache-miss

## Installation

Expand Down Expand Up @@ -88,7 +88,7 @@ const Cache = require("@opensnip/lrujs");
// Create cache object
const cache = new Cache({
maxLength: 10,
ttl: 100,
ttl: 1000,
interval: 60000,
});
```
Expand Down Expand Up @@ -129,7 +129,7 @@ cache.set("a", 10);
cache.get("a"); // 10
```

Customize cache miss value:
Customize cache-miss value:

```js
// Add new data in cache
Expand Down

0 comments on commit 2cda6d0

Please sign in to comment.