C# Class Microsoft.AspNetCore.Mvc.CacheByPathAttribute

Inheritance: Microsoft.AspNetCore.Mvc.ResponseCachingAttribute
Show file Open project: StratosBlue/Cuture.AspNetCore.ResponseCaching

Public Methods

Method Description
CacheByPathAttribute ( int duration ) : System

根据请求路径进行响应缓存(不包含查询)

CacheByPathAttribute ( int duration, CacheStoreLocation storeLocation ) : System

根据请求路径进行响应缓存(不包含查询)

Method Details

CacheByPathAttribute() public method

根据请求路径进行响应缓存(不包含查询)
public CacheByPathAttribute ( int duration ) : System
duration int 缓存时长(秒)
return System

CacheByPathAttribute() public method

根据请求路径进行响应缓存(不包含查询)
public CacheByPathAttribute ( int duration, CacheStoreLocation storeLocation ) : System
duration int 缓存时长(秒)
storeLocation CacheStoreLocation 缓存存储位置
return System