- Published on
Slow external API calls and database queries are usually your bottleneck. Cache them with IMemoryCache - cache keys, absolute vs. sliding expiration, and a real example that drops a Commodities API call from seconds to a few milliseconds.