-
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
reiugit/OutputCacheExample
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|