Skip to content

reiugit/OutputCacheExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OutputCache for WebAPI

  1. Add OutputCache to DI container

    builder.Services.AddOutputCache(configureOptions)
  2. Add OutputCache to middleware

    app.UseOutputCache()
  3. Apply caching to endpoints

    Use method '.CacheOutput()' for minimal endpoints
    or Attribute '[CacheOutput]' in controllers
    

Releases

No releases published

Packages

No packages published

Languages