Open sandboxFocus

Constructor CacheItem

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<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