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

    Class MemcachedConfigurationBuilderExtensions

    Extensions for the configuration builder specific to the Memcached cache handle.

    Inheritance
    Object
    MemcachedConfigurationBuilderExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace:CacheManager.Core
    Assembly:CacheManager.Memcached.dll
    Syntax
    public static class MemcachedConfigurationBuilderExtensions

    Methods

    | Improve this Doc View Source

    WithMemcachedCacheHandle(ConfigurationBuilderCachePart, MemcachedClientConfiguration, Boolean)

    Adds a MemcachedCacheHandle<TCacheValue> using the clientConfiguration to setup a Enyim.Caching.MemcachedClient instance.

    Declaration
    public static ConfigurationBuilderCacheHandlePart WithMemcachedCacheHandle(this ConfigurationBuilderCachePart part, MemcachedClientConfiguration clientConfiguration, bool isBackplaneSource = true)
    Parameters
    Type Name Description
    ConfigurationBuilderCachePart part

    The builder part.

    Enyim.Caching.Configuration.MemcachedClientConfiguration clientConfiguration

    The Enyim.Caching.Configuration.MemcachedClientConfiguration to use to create the Enyim.Caching.MemcachedClient for this cache handle.

    Boolean isBackplaneSource

    Set this to true if this cache handle should be the source of the backplane.

    This setting will be ignored if no backplane is configured.

    Returns
    Type Description
    ConfigurationBuilderCacheHandlePart

    The part.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if clientConfiguration is null.

    | Improve this Doc View Source

    WithMemcachedCacheHandle(ConfigurationBuilderCachePart, MemcachedClient, Boolean)

    Adds a MemcachedCacheHandle<TCacheValue> with a preconfigured Enyim.Caching.MemcachedClient instance.

    Declaration
    public static ConfigurationBuilderCacheHandlePart WithMemcachedCacheHandle(this ConfigurationBuilderCachePart part, MemcachedClient client, bool isBackplaneSource = true)
    Parameters
    Type Name Description
    ConfigurationBuilderCachePart part

    The builder part.

    Enyim.Caching.MemcachedClient client

    The Enyim.Caching.MemcachedClient to use for this cache handle.

    Boolean isBackplaneSource

    Set this to true if this cache handle should be the source of the backplane.

    This setting will be ignored if no backplane is configured.

    Returns
    Type Description
    ConfigurationBuilderCacheHandlePart

    The part.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if client is null.

    | Improve this Doc View Source

    WithMemcachedCacheHandle(ConfigurationBuilderCachePart, String, MemcachedClientConfiguration, Boolean)

    Adds a MemcachedCacheHandle<TCacheValue> using the clientConfiguration to setup a Enyim.Caching.MemcachedClient instance.

    Declaration
    public static ConfigurationBuilderCacheHandlePart WithMemcachedCacheHandle(this ConfigurationBuilderCachePart part, string configurationName, MemcachedClientConfiguration clientConfiguration, bool isBackplaneSource = true)
    Parameters
    Type Name Description
    ConfigurationBuilderCachePart part

    The builder part.

    String configurationName

    The configuration name.

    Enyim.Caching.Configuration.MemcachedClientConfiguration clientConfiguration

    The Enyim.Caching.Configuration.MemcachedClientConfiguration to use to create the Enyim.Caching.MemcachedClient for this cache handle.

    Boolean isBackplaneSource

    Set this to true if this cache handle should be the source of the backplane.

    This setting will be ignored if no backplane is configured.

    Returns
    Type Description
    ConfigurationBuilderCacheHandlePart

    The part.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if clientConfiguration is null.

    | Improve this Doc View Source

    WithMemcachedCacheHandle(ConfigurationBuilderCachePart, String, MemcachedClient, Boolean)

    Adds a MemcachedCacheHandle<TCacheValue>. The configurationName must match with cache configured via enyim configuration section.

    Declaration
    public static ConfigurationBuilderCacheHandlePart WithMemcachedCacheHandle(this ConfigurationBuilderCachePart part, string configurationName, MemcachedClient client, bool isBackplaneSource = true)
    Parameters
    Type Name Description
    ConfigurationBuilderCachePart part

    The builder part.

    String configurationName

    The configuration name.

    Enyim.Caching.MemcachedClient client

    The Enyim.Caching.MemcachedClient to use for this cache handle.

    Boolean isBackplaneSource

    Set this to true if this cache handle should be the source of the backplane.

    This setting will be ignored if no backplane is configured.

    Returns
    Type Description
    ConfigurationBuilderCacheHandlePart

    The part.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if client is null.

    | Improve this Doc View Source

    WithMemcachedCacheHandle(ConfigurationBuilderCachePart, String, Boolean)

    Adds a MemcachedCacheHandle<TCacheValue>. The configurationName must match with cache configured via enyim configuration section.

    Declaration
    public static ConfigurationBuilderCacheHandlePart WithMemcachedCacheHandle(this ConfigurationBuilderCachePart part, string configurationName, bool isBackplaneSource = true)
    Parameters
    Type Name Description
    ConfigurationBuilderCachePart part

    The builder part.

    String configurationName

    The configuration name.

    Boolean isBackplaneSource

    Set this to true if this cache handle should be the source of the backplane.

    This setting will be ignored if no backplane is configured.

    Returns
    Type Description
    ConfigurationBuilderCacheHandlePart

    The part.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if handleName or handleType are null.

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