Skip to main content

CacheInfo

Assembly: ServiceStack.dll
View Source
Declaration
public class CacheInfo

Properties

CacheKey

The CacheKey to be use store the response against

View Source
Declaration
public string CacheKey { get; }

KeyBase

The base Cache Key used to cache the Service response

View Source
Declaration
public string KeyBase { get; set; }

KeyModifiers

Additional CacheKey Modifiers used to cache different outputs for a single Service Response

View Source
Declaration
public string KeyModifiers { get; set; }

ExpiresIn

How long to cache the resource for. Fallsback to HttpCacheFeature.DefaultExpiresIn

View Source
Declaration
public TimeSpan? ExpiresIn { get; set; }

ETag

The unique ETag returned for this resource clients can use to determine whether their local version has changed

View Source
Declaration
public string ETag { get; set; }

Age

The Age for this resource returned to clients

View Source
Declaration
public TimeSpan? Age { get; set; }

MaxAge

The MaxAge returned to clients to indicate how long they can use their local cache before re-validating

View Source
Declaration
public TimeSpan? MaxAge { get; set; }

LastModified

The LastModified date to use for the Cache and HTTP Header

View Source
Declaration
public DateTime? LastModified { get; set; }

CacheControl

Cache-Control HTTP Headers

View Source
Declaration
public CacheControl CacheControl { get; set; }

VaryByUser

Create unique cache per user

View Source
Declaration
public bool VaryByUser { get; set; }

LocalCache

Use HostContext.LocalCache or HostContext.Cache

View Source
Declaration
public bool LocalCache { get; set; }

NoCompression

Skip compression for this Cache Result

View Source
Declaration
public bool NoCompression { get; set; }