PostSharp6.4/API Reference/Post­Sharp.​Patterns.​Caching.​Implementation Namespace/Cache­Item Class

CacheItem Class

Represents an item being added to the cache.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Caching.Implementation.CacheItem

Namespace:  PostSharp.Patterns.Caching.Implementation
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.4.3.0 (6.4.3.0)
Syntax
C#
public sealed class CacheItem : IEquatable<CacheItem>

The CacheItem type exposes the following members.

Constructors
  NameDescription
Public methodCacheItem
Initializes a new CacheItem.
Properties
  NameDescription
Public propertyConfiguration
Gets the CacheItemConfiguration for the current item, or null to use the default configuration.
Public propertyDependencies
Gets the list of dependencies of the current item, or null if there is no dependency.
Public propertyValue
Gets the value to be cached (null is a valid value).
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides Object.Equals(Object).)
Public methodEquals(CacheItem)
Determines whether the current CacheItem is structurally equal to another CacheItem.
Public methodGetHashCode
Serves as the default hash function.
(Overrides Object.GetHashCode().)
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two instances of the CacheItem class are structurally equal.
Public operatorStatic memberInequality
Determines whether two instances of the CacheItem class are structurally different.
See Also