-
Add OutputCache to DI container
builder.Services.AddOutputCache(configureOptions)
-
Add OutputCache to middleware
app.UseOutputCache()
-
Apply caching to endpoints
Use method '.CacheOutput()' for minimal endpoints or Attribute '[CacheOutput]' in controllers