Skip to content

Commit

Permalink
Update README.md (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa authored May 6, 2024
1 parent 788fd7f commit a7b40de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const loader = new Loader<string>({
},

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

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

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

0 comments on commit a7b40de

Please sign in to comment.