• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class CacheableAttribute

Inheritance
System.Object
CacheableAttribute
Namespace: DotNetNuke.ComponentModel.DataAnnotations
Assembly: DotNetNuke.dll
Syntax
public class CacheableAttribute : Attribute

Constructors

| Improve this Doc View Source

CacheableAttribute()

Initializes a new instance of the CacheableAttribute class. Construct a new CacheableAttribute.

Declaration
public CacheableAttribute()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

CacheKey

Gets or sets the root key to use for the cache.

Declaration
public string CacheKey { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

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

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS