Table of Contents

Class CacheKey

Namespace
The.Caching
Assembly
Instagile.dll
public abstract class CacheKey
Inheritance
CacheKey
Derived
Inherited Members

Properties

IsDeterministic

Whether the key describes the same set of rows whenever its query runs; if not, an entry stored under it is never fresh however recently it was read.

public virtual bool IsDeterministic { get; }

Property Value

bool

Methods

Create(IEntityQuery)

Construct a cache key from a query.

public static CacheKey Create(IEntityQuery query)

Parameters

query IEntityQuery

Returns

CacheKey

Create(IsolatedQuery)

Construct a cache key from decomposed query components.

public static CacheKey Create(IsolatedQuery query)

Parameters

query IsolatedQuery

Returns

CacheKey

CreateMany(IEntityQuery)

Construct a sequence cache key from a query. Assumes the result is enumerable rather than scalar.

public static CacheKey CreateMany(IEntityQuery query)

Parameters

query IEntityQuery

Returns

CacheKey

CreateMany(FilterLevel, string, Expression)

Construct a sequence cache key from decomposed query components. Assumes the result is enumerable rather than scalar.

public static CacheKey CreateMany(FilterLevel keyLevel, string targetEntityName, Expression expression)

Parameters

keyLevel FilterLevel
targetEntityName string
expression Expression

Returns

CacheKey