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

    Class RedisConfigurations

    Manages redis client configurations for the cache handle.

    Configurations will be added by the cache configuration builder/factory or the configuration loader. The cache handle will pick up the configuration matching the handle's name.

    Inheritance
    Object
    RedisConfigurations
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace:CacheManager.Redis
    Assembly:CacheManager.StackExchange.Redis.dll
    Syntax
    public static class RedisConfigurations

    Methods

    | Improve this Doc View Source

    AddConfiguration(RedisConfiguration)

    Adds the configuration.

    Declaration
    public static void AddConfiguration(RedisConfiguration configuration)
    Parameters
    Type Name Description
    RedisConfiguration configuration

    The configuration.

    Exceptions
    Type Condition
    ArgumentNullException

    If configuration is null.

    | Improve this Doc View Source

    GetConfiguration(String)

    Gets the configuration.

    Declaration
    public static RedisConfiguration GetConfiguration(string configurationName)
    Parameters
    Type Name Description
    String configurationName

    The identifier.

    Returns
    Type Description
    RedisConfiguration

    The RedisConfiguration.

    Exceptions
    Type Condition
    ArgumentNullException

    If id is null.

    InvalidOperationException

    If no configuration was added for the id.

    | Improve this Doc View Source

    LoadConfiguration()

    Loads the configuration from the default section name 'cacheManager.Redis'.

    Declaration
    public static void LoadConfiguration()
    | Improve this Doc View Source

    LoadConfiguration(RedisConfigurationSection)

    Loads the configuration.

    Declaration
    public static void LoadConfiguration(RedisConfigurationSection section)
    Parameters
    Type Name Description
    RedisConfigurationSection section

    The section.

    Exceptions
    Type Condition
    ArgumentNullException

    If section is null.

    | Improve this Doc View Source

    LoadConfiguration(String)

    Loads the configuration.

    Declaration
    public static void LoadConfiguration(string sectionName)
    Parameters
    Type Name Description
    String sectionName

    Name of the section.

    Exceptions
    Type Condition
    ArgumentNullException

    If sectionName is null.

    | Improve this Doc View Source

    LoadConfiguration(String, String)

    Loads the configuration.

    Declaration
    public static void LoadConfiguration(string configFileName, string sectionName)
    Parameters
    Type Name Description
    String configFileName

    Name of the configuration file.

    String sectionName

    Name of the section.

    Exceptions
    Type Condition
    ArgumentNullException

    If configFileName or sectionName are null.

    InvalidOperationException

    If the configuration file could not be found.

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