MemoryCacheValue(object, IImmutableList<string>, object)
Initializes a new instance of the MemoryCacheValue class without the tags parameter.
Declaration
[Obsolete("Pass the tags parameter.")]
public MemoryCacheValue(object value, IImmutableList<string> dependencies, object sync)Parameters
| Type | Name | Description |
|---|---|---|
| object | value | The cached value. |
| IImmutableList<string> | dependencies | The list of dependencies, or |
| object | sync | A mutex that is locked when the dependencies of this item are modified. |
MemoryCacheValue(object, IReadOnlyList<object>, IImmutableList<string>, object)
Initializes a new instance of the MemoryCacheValue class with the tags parameter.
Declaration
public MemoryCacheValue(object value, IReadOnlyList<object> tags, IImmutableList<string> dependencies, object sync)Parameters
| Type | Name | Description |
|---|---|---|
| object | value | The cached value. |
| IReadOnlyList<object> | tags | A secondary list of values, typically used by CachingBackendEnhancer implementations. |
| IImmutableList<string> | dependencies | The list of dependencies, or |
| object | sync | A mutex that is locked when the dependencies of this item are modified. |