Represents an item being added to the cache.
Implements
Namespace: PostSharp.Patterns.Caching.Implementation
Assembly: PostSharp.Patterns.Caching.dll
Syntax
[ImportSerializer(typeof(ImmutableList<>), typeof(ImmutableListPortableSerializer<>))]
[Serializer(typeof(CacheItem.Serializer))]
public sealed class CacheItem : IEquatable<CacheItem>
Constructors
Name | Description |
---|---|
CacheItem(PortableFormatterConstructorContext) | |
CacheItem(object, IImmutableList<string>, CacheItemConfiguration) | Initializes a new CacheItem. |
Properties
Name | Description |
---|---|
Configuration | Gets the CacheItemConfiguration for the current item,
or |
Dependencies | Gets the list of dependencies of the current item, or |
Value | Gets the value to be cached ( |
Methods
Name | Description |
---|---|
Equals(CacheItem) | Determines whether the current CacheItem is structurally equal to another CacheItem. |
Equals(object) | |
GetHashCode() |
Operators
Name | Description |
---|---|
operator ==(CacheItem, CacheItem) | Determines whether two instances of the CacheItem class are structurally equal. |
operator !=(CacheItem, CacheItem) | Determines whether two instances of the CacheItem class are structurally different. |