Class CacheManagerConfiguration
The basic cache manager configuration class.
Inherited Members
Namespace:CacheManager.Core
Assembly:CacheManager.Core.dll
Syntax
public sealed class CacheManagerConfiguration : ICacheManagerConfiguration, IReadOnlyCacheManagerConfiguration
Constructors
| Improve this Doc View SourceCacheManagerConfiguration()
Initializes a new instance of the CacheManagerConfiguration class.
Declaration
public CacheManagerConfiguration()
Properties
| Improve this Doc View SourceBackplaneChannelName
Gets or sets the backplane channel name.
Declaration
public string BackplaneChannelName { get; set; }
Property Value
Type | Description |
---|---|
String | The channel name. |
Implements
| Improve this Doc View SourceBackplaneConfigurationKey
Gets or sets the configuration key the backplane might use.
Declaration
public string BackplaneConfigurationKey { get; set; }
Property Value
Type | Description |
---|---|
String | The key of the backplane configuration. |
Implements
| Improve this Doc View SourceBackplaneType
Gets or sets the factory method for a cache backplane.
Declaration
public Type BackplaneType { get; set; }
Property Value
Type | Description |
---|---|
Type | The backplane activator. |
Implements
| Improve this Doc View SourceBackplaneTypeArguments
Gets or sets additional arguments which should be used instantiating the backplane.
Declaration
public object[] BackplaneTypeArguments { get; set; }
Property Value
Type | Description |
---|---|
Object[] | The list of arguments. |
Implements
| Improve this Doc View SourceBuilder
Gets a ConfigurationBuilder for the current CacheManagerConfiguration instance to manipulate the configuration fluently.
Declaration
public ConfigurationBuilder Builder { get; }
Property Value
Type | Description |
---|---|
ConfigurationBuilder | The ConfigurationBuilder. |
Implements
| Improve this Doc View SourceCacheHandleConfigurations
Gets the list of cache handle configurations.
Declaration
public IList<CacheHandleConfiguration> CacheHandleConfigurations { get; }
Property Value
Type | Description |
---|---|
IList<CacheHandleConfiguration> | The list of cache handle configurations. |
Implements
| Improve this Doc View SourceHasBackplane
Gets a value indicating whether this instance has a backplane defined.
Declaration
public bool HasBackplane { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Implements
| Improve this Doc View SourceLoggerFactoryType
Gets or sets the factory method for a logger factory.
Declaration
public Type LoggerFactoryType { get; set; }
Property Value
Type | Description |
---|---|
Type | The logger factory activator. |
Implements
| Improve this Doc View SourceLoggerFactoryTypeArguments
Gets or sets additional arguments which should be used instantiating the logger factory.
Declaration
public object[] LoggerFactoryTypeArguments { get; set; }
Property Value
Type | Description |
---|---|
Object[] | The list of arguments. |
Implements
| Improve this Doc View SourceMaxRetries
Gets or sets the limit of the number of retry operations per action.
Default is 50.
Declaration
public int MaxRetries { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The maximum retries. |
Implements
| Improve this Doc View SourceName
Gets or sets the name of the cache.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String | The name of the cache. |
Implements
| Improve this Doc View SourceRetryTimeout
Gets or sets the number of milliseconds the cache should wait before it will retry an action.
Default is 100.
Declaration
public int RetryTimeout { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The retry timeout. |
Implements
| Improve this Doc View SourceSerializerType
Gets or sets the factory method for a cache serializer.
Declaration
public Type SerializerType { get; set; }
Property Value
Type | Description |
---|---|
Type | The serializer activator. |
Implements
| Improve this Doc View SourceSerializerTypeArguments
Gets or sets additional arguments which should be used instantiating the serializer.
Declaration
public object[] SerializerTypeArguments { get; set; }
Property Value
Type | Description |
---|---|
Object[] | The list of arguments. |
Implements
| Improve this Doc View SourceUpdateMode
Gets or sets the UpdateMode for the cache manager instance.
Drives the behavior of the cache manager how it should update the different cache handles it manages.
Declaration
public CacheUpdateMode UpdateMode { get; set; }
Property Value
Type | Description |
---|---|
CacheUpdateMode | The cache update mode. |
Implements
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |