Open sandboxFocus

Class CacheValue

Return value of the GetItem(string, bool) method, i.e. represents an item retrieved from the cache (items being stored in the cache are represented by the CacheItem class).

Inheritance
CacheValue
Namespace: PostSharp.Patterns.Caching.Implementation
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public class CacheValue

Constructors

Name Description
CacheValue(object, IReadOnlyList<object>, IImmutableList<string>)

Initializes a new CacheValue and specifies the Tags list.

CacheValue(object, IImmutableList<string>)

Initializes a new CacheValue without specifying the Tags list.

Properties

Name Description
Dependencies

Gets the list of dependencies of the cache.

Tags

Gets a list of tags, i.e. additional values to be cached, typically set by backend enhancers.

Value

Gets the cached value.

Methods

Name Description
WithValue(object)

Returns a new CacheValue with different Value but identical Dependencies.