Skip to content

Commit a7b40de

Browse files
authored
Update README.md (#328)
1 parent 788fd7f commit a7b40de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const loader = new Loader<string>({
147147
},
148148

149149
// this cache will be checked if in-memory one returns undefined
150-
asyncCache: new RedisCache(ioRedis, {
150+
asyncCache: new RedisCache<string>(ioRedis, {
151151
json: true, // this instructs loader to serialize passed objects as string and deserialize them back to objects
152152
ttlInMsecs: 1000 * 60 * 10,
153153
}),
@@ -174,7 +174,7 @@ const loader = new Loader<string>({
174174
},
175175

176176
// this cache will be checked if in-memory one returns undefined
177-
asyncCache: new RedisCache(ioRedis, {
177+
asyncCache: new RedisCache<string>(ioRedis, {
178178
json: true, // this instructs loader to serialize passed objects as string and deserialize them back to objects
179179
ttlInMsecs: 1000 * 60 * 10,
180180
}),
@@ -386,7 +386,7 @@ const cache = new ManualCache<string>({
386386
},
387387

388388
// this cache will be checked if in-memory one returns undefined
389-
asyncCache: new RedisCache(ioRedis, {
389+
asyncCache: new RedisCache<string>(ioRedis, {
390390
json: true, // this instructs loader to serialize passed objects as string and deserialize them back to objects
391391
ttlInMsecs: 1000 * 60 * 10,
392392
}),

0 commit comments

Comments
 (0)