Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
prisca-c committed Dec 30, 2023
1 parent 971e0d1 commit 04463dc
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 @@ -68,15 +68,15 @@ const cache = new Cache();

### Get key
```js
cache.get("key");
await cache.get("key");
```

### Set key
```js
cache.set("key", "value");
await cache.set("key", "value");

//cache with expiration time
cache.set("key", "value", 1000); //time in ms
await cache.set("key", "value", 1000); //time in ms
```

### Delete key
Expand Down

0 comments on commit 04463dc

Please sign in to comment.