Class CacheableAttribute
Inheritance
Namespace: DotNetNuke.ComponentModel.DataAnnotations
Assembly: DotNetNuke.dll
Syntax
public class CacheableAttribute : Attribute
Constructors
| Improve this Doc View SourceCacheableAttribute()
Initializes a new instance of the CacheableAttribute class. Construct a new CacheableAttribute.
Declaration
public CacheableAttribute()
CacheableAttribute(String, CacheItemPriority, Int32)
Initializes a new instance of the CacheableAttribute class. Construct a new CacheableAttribute.
Declaration
public CacheableAttribute(string cacheKey, CacheItemPriority priority, int timeOut)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | cacheKey | The cacheKey to use. |
| CacheItemPriority | priority | The priority of the cached item. |
| System.Int32 | timeOut | The timeout multiplier used to cache the item. |
CacheableAttribute(String, CacheItemPriority)
Initializes a new instance of the CacheableAttribute class. Construct a new CacheableAttribute.
Declaration
public CacheableAttribute(string cacheKey, CacheItemPriority priority)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | cacheKey | The cacheKey to use. |
| CacheItemPriority | priority | The priority of the cached item. |
CacheableAttribute(String)
Initializes a new instance of the CacheableAttribute class. Construct a new CacheableAttribute.
Declaration
public CacheableAttribute(string cacheKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | cacheKey | The cacheKey to use. |
Properties
| Improve this Doc View SourceCacheKey
Gets or sets the root key to use for the cache.
Declaration
public string CacheKey { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
CachePriority
Gets or sets the priority of the cached item. The default value is CacheItemPriority.Default.
Declaration
public CacheItemPriority CachePriority { get; set; }
Property Value
| Type | Description |
|---|---|
| CacheItemPriority |
CacheTimeOut
Gets or sets the timeout multiplier used to cache the item. This value is multiple by the Host Performance Setting to determine the actual timeout value. The default value is 20.
Declaration
public int CacheTimeOut { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |