@@ -147,7 +147,7 @@ const loader = new Loader<string>({
147
147
},
148
148
149
149
// this cache will be checked if in-memory one returns undefined
150
- asyncCache: new RedisCache (ioRedis , {
150
+ asyncCache: new RedisCache < string > (ioRedis , {
151
151
json: true , // this instructs loader to serialize passed objects as string and deserialize them back to objects
152
152
ttlInMsecs: 1000 * 60 * 10 ,
153
153
}),
@@ -174,7 +174,7 @@ const loader = new Loader<string>({
174
174
},
175
175
176
176
// this cache will be checked if in-memory one returns undefined
177
- asyncCache: new RedisCache (ioRedis , {
177
+ asyncCache: new RedisCache < string > (ioRedis , {
178
178
json: true , // this instructs loader to serialize passed objects as string and deserialize them back to objects
179
179
ttlInMsecs: 1000 * 60 * 10 ,
180
180
}),
@@ -386,7 +386,7 @@ const cache = new ManualCache<string>({
386
386
},
387
387
388
388
// this cache will be checked if in-memory one returns undefined
389
- asyncCache: new RedisCache (ioRedis , {
389
+ asyncCache: new RedisCache < string > (ioRedis , {
390
390
json: true , // this instructs loader to serialize passed objects as string and deserialize them back to objects
391
391
ttlInMsecs: 1000 * 60 * 10 ,
392
392
}),
0 commit comments