Class MicrosoftMemoryCachingBuilderExtensions
Extensions for the configuration builder specific to
Inherited Members
Namespace:CacheManager.Core
Assembly:CacheManager.Microsoft.Extensions.Caching.Memory.dll
Syntax
public static class MicrosoftMemoryCachingBuilderExtensions
Methods
| Improve this Doc View SourceWithMicrosoftMemoryCacheHandle(ConfigurationBuilderCachePart, MemoryCacheOptions)
Adds a cache handle using
Declaration
[CLSCompliant(false)]
public static ConfigurationBuilderCacheHandlePart WithMicrosoftMemoryCacheHandle(this ConfigurationBuilderCachePart part, MemoryCacheOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ConfigurationBuilderCachePart | part | The builder part. |
| MemoryCacheOptions | options | The |
Returns
| Type | Description |
|---|---|
| ConfigurationBuilderCacheHandlePart | The builder part. |
WithMicrosoftMemoryCacheHandle(ConfigurationBuilderCachePart, Boolean)
Adds a cache handle using
Declaration
public static ConfigurationBuilderCacheHandlePart WithMicrosoftMemoryCacheHandle(this ConfigurationBuilderCachePart part, bool isBackplaneSource = false)
Parameters
| Type | Name | Description |
|---|---|---|
| ConfigurationBuilderCachePart | part | The builder part. |
| 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 builder part. |
WithMicrosoftMemoryCacheHandle(ConfigurationBuilderCachePart, String, MemoryCacheOptions)
Adds a cache handle using
Declaration
[CLSCompliant(false)]
public static ConfigurationBuilderCacheHandlePart WithMicrosoftMemoryCacheHandle(this ConfigurationBuilderCachePart part, string instanceName, MemoryCacheOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ConfigurationBuilderCachePart | part | The builder part. |
| String | instanceName | The name to be used for the cache handle instance. |
| MemoryCacheOptions | options | The |
Returns
| Type | Description |
|---|---|
| ConfigurationBuilderCacheHandlePart | The builder part. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if instanceName is null. |
WithMicrosoftMemoryCacheHandle(ConfigurationBuilderCachePart, String, Boolean)
Adds a cache handle using
Declaration
public static ConfigurationBuilderCacheHandlePart WithMicrosoftMemoryCacheHandle(this ConfigurationBuilderCachePart part, string instanceName, bool isBackplaneSource = false)
Parameters
| Type | Name | Description |
|---|---|---|
| ConfigurationBuilderCachePart | part | The builder part. |
| String | instanceName | The name to be used for the cache handle instance. |
| 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 builder part. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | If part is null. |
| ArgumentNullException | Thrown if instanceName is null. |
WithMicrosoftMemoryCacheHandle(ConfigurationBuilderCachePart, String, Boolean, MemoryCacheOptions)
Adds a cache handle using
Declaration
[CLSCompliant(false)]
public static ConfigurationBuilderCacheHandlePart WithMicrosoftMemoryCacheHandle(this ConfigurationBuilderCachePart part, string instanceName, bool isBackplaneSource, MemoryCacheOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ConfigurationBuilderCachePart | part | The builder part. |
| String | instanceName | The name to be used for the cache handle instance. |
| 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. |
| MemoryCacheOptions | options | The |
Returns
| Type | Description |
|---|---|
| ConfigurationBuilderCacheHandlePart | The builder part. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | If part is null. |
| ArgumentNullException | Thrown if instanceName is null. |