Table of Contents

Class InfoCacheAttribute

Namespace
CMS.DataEngine
Assembly
CMS.DataEngine.dll

Associates info cache configuration with an info class so that it can be cached accordingly.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class InfoCacheAttribute : Attribute
Inheritance
object
Attribute
InfoCacheAttribute
Extension Methods

Constructors

InfoCacheAttribute(InfoCacheBy)

Initializes a new instance of the InfoCacheAttribute using the specified cacheBy flags.

public InfoCacheAttribute(InfoCacheBy cacheBy)

Parameters

cacheBy InfoCacheBy

Cache by flags configuring what kind of caching to use.

Properties

CacheBy

Cache by flags configuring what kind of caching to use.

public InfoCacheBy CacheBy { get; }

Property Value

InfoCacheBy

LoadEagerly

Specifies whether to eagerly initialize the cache. The default value is false.

public bool LoadEagerly { get; set; }

Property Value

bool

Priority

Info cache priority to be used. The default priority is Default.

public InfoCachePriority Priority { get; set; }

Property Value

InfoCachePriority

See Also