Skip to main content

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
TypeName
ServiceStack.IAppHostappHost

HandleCacheResponses(IRequest, IResponse, Object)

View Source
Declaration
public async Task HandleCacheResponses(IRequest req, IResponse res, object response)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres
System.Objectresponse

BuildCacheControlHeader(CacheInfo)

View Source
Declaration
public string BuildCacheControlHeader(CacheInfo cacheInfo)
Returns

System.String

Parameters
TypeName
ServiceStack.CacheInfocacheInfo

Implements