Click or drag to resize
CacheSettings Class
Cache settings container.
Inheritance Hierarchy
SystemObject
  CMS.HelpersCacheSettings

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public class CacheSettings

The CacheSettings type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAllowProgressiveCaching
If true, progressive caching is enabled, meaning that two threads accessing the same code share the result of an internal operation.
Public propertyBoolCondition
Cache condition.
Public propertyCached
If true, the data is used from the cache if available / cached.
Public propertyCacheDependency
Cache dependency to use for the cache item. When GetCacheDependency is set and this property is not set explicitly, the value is retrieved by calling the delegate in GetCacheDependency property. Use setter of this property only in the data loading code of the cached code block to avoid unnecessary initialization of the dependencies. Use delegate property GetCacheDependency to provide cache dependencies in a more efficient way only when the system really needs them.
Public propertyCacheItemName
Cache item name used for the caching.
Public propertyCacheItemNameParts
Cache item name parts (form the cache item name if the custom item name is not available).
Public propertyCacheItemPriority
Cache priority.
Public propertyCacheMinutes
Cache minutes.
Public propertyCustomCacheItemName
Custom cache item name (if set, used instead of the parts).
Public propertyGetCacheDependency
Function to dynamically get the cache dependency.
Public propertyUseSlidingExpiration
Indicates whether sliding expiration should be used. If enabled, objects are removed from the cache only if they are not accessed for the number of minutes specified by CacheMinutes.
Top
See Also