A cache dependency that is already represented as a string.
Namespace: Metalama.Patterns.Caching.Dependencies
Assembly: Metalama.Patterns.Caching.dll
Syntax
public sealed record StringDependency : ICacheDependency, IEquatable<StringDependency>Remarks
Use this class to represent singleton or global dependencies that don't have a corresponding object (for example, "ProductList" or "PriceList" dependencies that represent entire collections).
For object-based dependencies, consider using ObjectDependency instead.
Constructors
| Name | Description |
|---|---|
| StringDependency(string) | A cache dependency that is already represented as a string. |
Properties
| Name | Description |
|---|---|
| Key |
Methods
| Name | Description |
|---|---|
| Deconstruct(out string) | |
| Equals(StringDependency?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Operators
| Name | Description |
|---|---|
| operator ==(StringDependency?, StringDependency?) | |
| operator !=(StringDependency?, StringDependency?) |