OutputCacheApplicationBuilderExtensions.UseOutputCache 方法

定义

添加用于缓存 HTTP 响应的 Microsoft.AspNetCore.OutputCaching.OutputCacheMiddleware

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOutputCache (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseOutputCache : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOutputCache (app As IApplicationBuilder) As IApplicationBuilder

参数

返回

适用于