HttpCacheFeature
Assembly: ServiceStack.dll
View Source
Declaration
public class HttpCacheFeature : IPlugin, IHasStringId, IHasId<string>
Properties
Id
View Source
Declaration
public string Id { get; set; }
DefaultMaxAge
View Source
Declaration
public TimeSpan DefaultMaxAge { get; set; }
DefaultExpiresIn
View Source
Declaration
public TimeSpan DefaultExpiresIn { get; set; }
DisableCaching
View Source
Declaration
public bool DisableCaching { get; set; }
CacheControlFilter
View Source
Declaration
public Func<string, string> CacheControlFilter { get; set; }
CacheControlForOptimizedResults
View Source
Declaration
public string CacheControlForOptimizedResults { get; set; }
Methods
Register(IAppHost)
View Source
Declaration
public void Register(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |
HandleCacheResponses(IRequest, IResponse, Object)
View Source
Declaration
public async Task HandleCacheResponses(IRequest req, IResponse res, object response)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | res |
System.Object | response |
BuildCacheControlHeader(CacheInfo)
View Source
Declaration
public string BuildCacheControlHeader(CacheInfo cacheInfo)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.CacheInfo | cacheInfo |