Skip to content

Commit

Permalink
fix: mget/mset examples in README
Browse files Browse the repository at this point in the history
  • Loading branch information
zzau13 committed Oct 19, 2022
1 parent 3c5f279 commit 1ca67a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -54,19 +54,19 @@ See unit tests in `test/caching.ts` for more information.
#### Example setting/getting several keys with mset() and mget()

```typescript
await memoryCache.mset(
await memoryCache.store.mset(
[
['foo', 'bar'],
['foo2', 'bar2'],
],
ttl,
);

console.log(await memoryCache.mget('foo', 'foo2'));
console.log(await memoryCache.store.mget('foo', 'foo2'));
// >> ['bar', 'bar2']

// Delete keys with mdel() passing arguments...
await memoryCache.mdel('foo', 'foo2');
await memoryCache.store.mdel('foo', 'foo2');
```

#### [Example Express App Usage](./examples/express/src/index.mts)
Expand Down

0 comments on commit 1ca67a4

Please sign in to comment.