Open sandboxFocus

Constructor CacheItem

CacheItem(object, IImmutableList<string>, CacheItemConfiguration)

Initializes a new CacheItem without specifying the Tags list.

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(object, IReadOnlyList<object>, IImmutableList<string>, CacheItemConfiguration)

Initializes a new CacheItem and specifies the Tags list.

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

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

IReadOnlyList<object> tags

A secondary list of values, typically used by CachingBackendEnhancer implementations.

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