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

CacheItem Constructor

CacheItem(Object, IImmutableList<String>, CacheItemConfiguration)

Initializes a new CacheItem.

Declaration
public CacheItem(object value, IImmutableList<string> dependencies = null, CacheItemConfiguration configuration = null)
Parameters
Type Name Description
Object value

The value to be cached (null is a valid value).

IImmutableList<System.String> dependencies

A list of dependencies, or null if there is no dependency.

CacheItemConfiguration configuration

The configuration of the cache item, or null to use the default configuration.

CacheItem(PortableFormatterConstructorContext)

Declaration
protected CacheItem(PortableFormatterConstructorContext context)
Parameters
Type Name Description
PortableFormatterConstructorContext context