Table of Contents

Struct CacheResult<TValue, TUpdate>

Namespace
The.Caching
Assembly
Instagile.dll

The result of a cache query.

public readonly struct CacheResult<TValue, TUpdate>

Type Parameters

TValue
TUpdate
Inherited Members

Properties

State

Describes the source of the contained value and whether Updated events are likely to be raised.

public ResultState State { get; }

Property Value

ResultState

Value

A value retrieved from the datastore or the cache.

public TValue Value { get; }

Property Value

TValue

Methods

AddUpdateHandler(UpdateHandler<TUpdate>, bool)

Create a weak event subscription, raised when a new value is available for the cached query.

public void AddUpdateHandler(UpdateHandler<TUpdate> handler, bool once = false)

Parameters

handler UpdateHandler<TUpdate>
once bool