Skip to content

Commit 40ae7e2

Browse files
authored
Fix use of ioredis on example. (#45)
1 parent bbbfa82 commit 40ae7e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ It also shows how to retain a reference to the cache object so that it can
5757
be re-used.
5858

5959
```js
60-
const redis = require('ioredis')({host: '127.0.0.1'})
60+
const IORedis = require('ioredis')
61+
const redis = new IORedis({host: '127.0.0.1'})
6162
const abcache = require('abstract-cache')({
6263
useAwait: false,
6364
driver: {

0 commit comments

Comments
 (0)