Set cache value asynchronously
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
This commit is contained in:
committed by
Joe Porpeglia
parent
45f37c9835
commit
f5598677bf
@@ -62,7 +62,7 @@ export class CachedEntityLoader {
|
||||
}
|
||||
|
||||
if (result) {
|
||||
await this.cache.set(cacheKey, result, { ttl: 5000 });
|
||||
this.cache.set(cacheKey, result, { ttl: 5000 });
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user