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

CacheItem Constructor

Initializes a new CacheItem.

Namespace:  PostSharp.Patterns.Caching.Implementation
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public CacheItem(
	Object value,
	IImmutableList<string> dependencies = null,
	CacheItemConfiguration configuration = null
)

Parameters

value
Type: System.Object
The value to be cached (null is a valid value).
dependencies (Optional)
Type: IImmutableList<String>
A list of dependencies, or null if there is no dependency.
configuration (Optional)
Type: PostSharp.Patterns.Caching.Implementation.CacheItemConfiguration
The configuration of the cache item, or null to use the default configuration.
See Also