Set cache value asynchronously

Signed-off-by: Joe Porpeglia <josephp@spotify.com>
This commit is contained in:
Joe Porpeglia
2022-01-07 17:46:53 -05:00
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;