Class MemcachedConfigurationBuilderExtensions
Extensions for the configuration builder specific to the Memcached cache handle.
Inherited Members
Namespace:CacheManager.Core
Assembly:CacheManager.Memcached.dll
Syntax
public static class MemcachedConfigurationBuilderExtensions
Methods
| Improve this Doc View SourceWithMemcachedCacheHandle(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. |
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. |
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. |
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. |
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. |