PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​ImplementationCache­Item
Open sandboxFocus

CacheItem Class

Represents an item being added to the cache.

Inheritance
CacheItem
Implements
IEquatable<CacheItem>
Namespace: PostSharp.Patterns.Caching.Implementation
Assembly: PostSharp.Patterns.Caching.dll
Syntax
[ImportSerializer]
[Serializer]
public sealed class CacheItem : Object

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 null to use the default configuration.

Dependencies

Gets the list of dependencies of the current item, or null if there is no dependency.

Value

Gets the value to be cached (null is a valid value).

Methods

Name Description
Equals(CacheItem)

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

Equals(Object)
GetHashCode()

Operators

Name Description
Equality(CacheItem, CacheItem)

Determines whether two instances of the CacheItem class are structurally equal.

Inequality(CacheItem, CacheItem)

Determines whether two instances of the CacheItem class are structurally different.