Buildintermediate
55 min
Cache OrderFlow Products with Redis
Add Redis to OrderFlow and wrap `IDistributedCache` in a typed `ICacheService`. Cache `GET /products/{id}` for 30 minutes and the first page of `GET /products` for 5 minutes. Wire up an `InvalidateProductCacheHandler` that clears cache entries when a `ProductUpdatedEvent` is raised. Add distributed locking to prevent thundering herd on cache expiry.
Your progress0%
Requirements
Skills you'll use
.NETRedisCachingCache-AsidePerformance
Read this first
This task is based on the lesson below. Complete the reading before attempting it.
Go to lessonWhat to expect
- Difficulty
- intermediate
- Time
- 55 min
- Steps
- 6
- Type
- Build