Open sandboxFocus

Class CacheItem

Represents an item being added to the cache, including the cached value, its dependencies, and configuration.

Inheritance
CacheItem
Implements
Namespace: Metalama.Patterns.Caching.Implementation
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
public record CacheItem : IEquatable<CacheItem>

Constructors

Name Description
CacheItem(CacheItem)
CacheItem(object?, ImmutableArray<string>, ICacheItemConfiguration?)

Initializes a new instance of the CacheItem class.

Properties

Name Description
Configuration

Gets or initializes the configuration for this cache item.

Dependencies

Gets or initializes the dependencies associated with this cache item.

EqualityContract
Value

Gets or initializes the cached value.

Methods

Name Description
Equals(CacheItem?)

Determines whether the current CacheItem is structurally equal to another CacheItem.

Equals(object?)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Operators

Name Description
operator ==(CacheItem?, CacheItem?)
operator !=(CacheItem?, CacheItem?)

Extension Methods

See Also