ResponseCachingMiddleware 类

定义

启用 HTTP 响应缓存。

public ref class ResponseCachingMiddleware
public class ResponseCachingMiddleware
type ResponseCachingMiddleware = class
Public Class ResponseCachingMiddleware
继承
ResponseCachingMiddleware

构造函数

ResponseCachingMiddleware(RequestDelegate, IOptions<ResponseCachingOptions>, ILoggerFactory, IResponseCachingPolicyProvider, IResponseCache, IResponseCachingKeyProvider)

启用 HTTP 响应缓存。

ResponseCachingMiddleware(RequestDelegate, IOptions<ResponseCachingOptions>, ILoggerFactory, IResponseCachingPolicyProvider, IResponseCachingKeyProvider)

启用 HTTP 响应缓存。

ResponseCachingMiddleware(RequestDelegate, IOptions<ResponseCachingOptions>, ILoggerFactory, ObjectPoolProvider)

创建一个新的 ResponseCachingMiddleware

方法

Invoke(HttpContext)

调用中间件的逻辑。

适用于