Skip to content

Commit 26b06de

Browse files
Brian DeteringBrian Detering
authored andcommitted
Merge branch 'master' of github.com:DubFriend/redis-dataloader
2 parents 5d9382a + d92719f commit 26b06de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ its cache if a value is not already present. Prime is asyncronous and returns a
5959

6060
#### Dependency inject a Redis Connection
6161

62-
```
62+
```javascript
6363
const redis = require('redis').createClient();
6464
const RedisDataLoader = require('redis-dataloader')({ redis: redis });
6565
```
@@ -69,7 +69,7 @@ const RedisDataLoader = require('redis-dataloader')({ redis: redis });
6969
Each Dataloader holds its own local in memory cache (Same as Facebook Dataloader),
7070
and additionally caches to your Redis instance.
7171

72-
```
72+
```javascript
7373
const loader = new RedisDataLoader('<redis key prefix>', '<Facebook Dataloader>', '<Options>');
7474
```
7575

@@ -109,7 +109,7 @@ finally checking your underlying datastore. This pattern may be desirable if for
109109
example you create a new DataLoader for each request. If your dataloader is long-lived
110110
you may want to disable to the local cache, and just rely on the redis cache instead
111111

112-
```
112+
```javascript
113113
const loader = new RedisDataLoader('prefix', new DataLoader(), { cache: false });
114114
```
115115

0 commit comments

Comments
 (0)