Class CacheHandleDefinition
Part of the section defining the available cache handles.
Inherited Members
Namespace:CacheManager.Core.Configuration
Assembly:CacheManager.Core.dll
Syntax
public sealed class CacheHandleDefinition : ConfigurationElement
Properties
| Improve this Doc View SourceDefaultExpirationMode
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. |
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. |
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. |
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. |