• CacheManager
  • Documentation
  • Api Docs
  • MichaCo.net
    Show / Hide Table of Contents

    Class CacheHandleDefinition

    Part of the section defining the available cache handles.

    Inheritance
    Object
    ConfigurationElement
    CacheHandleDefinition
    Inherited Members
    ConfigurationElement.Init()
    ConfigurationElement.IsModified()
    ConfigurationElement.ResetModified()
    ConfigurationElement.IsReadOnly()
    ConfigurationElement.SetReadOnly()
    ConfigurationElement.ListErrors(IList)
    ConfigurationElement.InitializeDefault()
    ConfigurationElement.Reset(ConfigurationElement)
    ConfigurationElement.Equals(Object)
    ConfigurationElement.GetHashCode()
    ConfigurationElement.SetPropertyValue(ConfigurationProperty, Object, Boolean)
    ConfigurationElement.Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode)
    ConfigurationElement.SerializeToXmlElement(XmlWriter, String)
    ConfigurationElement.SerializeElement(XmlWriter, Boolean)
    ConfigurationElement.DeserializeElement(XmlReader, Boolean)
    ConfigurationElement.OnRequiredPropertyNotFound(String)
    ConfigurationElement.PostDeserialize()
    ConfigurationElement.PreSerialize(XmlWriter)
    ConfigurationElement.OnDeserializeUnrecognizedAttribute(String, String)
    ConfigurationElement.OnDeserializeUnrecognizedElement(String, XmlReader)
    ConfigurationElement.GetTransformedTypeString(String)
    ConfigurationElement.GetTransformedAssemblyString(String)
    ConfigurationElement.LockAttributes
    ConfigurationElement.LockAllAttributesExcept
    ConfigurationElement.LockElements
    ConfigurationElement.LockAllElementsExcept
    ConfigurationElement.LockItem
    ConfigurationElement.Item[ConfigurationProperty]
    ConfigurationElement.Item[String]
    ConfigurationElement.Properties
    ConfigurationElement.ElementInformation
    ConfigurationElement.EvaluationContext
    ConfigurationElement.ElementProperty
    ConfigurationElement.HasContext
    ConfigurationElement.CurrentConfiguration
    Object.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace:CacheManager.Core.Configuration
    Assembly:CacheManager.Core.dll
    Syntax
    public sealed class CacheHandleDefinition : ConfigurationElement

    Properties

    | Improve this Doc View Source

    DefaultExpirationMode

    Gets or sets the default expiration mode.

    Declaration
    [ConfigurationProperty("defaultExpirationMode", IsRequired = false, DefaultValue = ExpirationMode.None)]
    public ExpirationMode DefaultExpirationMode { get; set; }
    Property Value
    Type Description
    ExpirationMode

    The default expiration mode.

    | Improve this Doc View Source

    DefaultTimeout

    Gets or sets the default timeout for the cache handle. If not overruled by the cache manager configuration, this value will be used instead. If nothing is defined, no expiration will be used.

    It is possible to define timeout in hours minutes or seconds by having a number + suffix, e.g. 10h means 10 hours, 5m means 5 minutes, 23s means 23 seconds.

    If no suffix is defined, minutes will be used.

    Declaration
    [ConfigurationProperty("defaultTimeout", IsRequired = false)]
    public string DefaultTimeout { get; set; }
    Property Value
    Type Description
    String

    The default timeout.

    | Improve this Doc View Source

    HandleType

    Gets or sets the type of the handle.

    Declaration
    [ConfigurationProperty("type", IsRequired = true)]
    [TypeConverter(typeof (TypeNameConverter))]
    public Type HandleType { get; set; }
    Property Value
    Type Description
    Type

    The type of the handle.

    | Improve this Doc View Source

    Id

    Gets or sets the identifier.

    Declaration
    [ConfigurationProperty("id", IsKey = true, IsRequired = true)]
    public string Id { get; set; }
    Property Value
    Type Description
    String

    The identifier.

    • Improve this Doc
    • View Source
    © 2025 by Michael Conrad. All rights reserved. - MichaCo.net