MemoryCacheValue(object, IImmutableList<string>, object)
Initializes a new MemoryCacheValue (no 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's locked when we manipulate this item's dependencies. |
MemoryCacheValue(object, IReadOnlyList<object>, IImmutableList<string>, object)
Initializes a new MemoryCacheValue and accepts 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's locked when we manipulate this item's dependencies. |