ICompiledQueryCacheKeyGenerator ICompiledQueryCacheKeyGenerator Interface

Definition

A cache key generator for the compiled query cache.

public interface ICompiledQueryCacheKeyGenerator
Public Interface ICompiledQueryCacheKeyGenerator

Methods

GenerateCacheKey(Expression, Boolean) GenerateCacheKey(Expression, Boolean)

Generates a cache key.

object GenerateCacheKey(Expression query, bool async)
Function GenerateCacheKey(query As Expression, async As Boolean) As Object
Parameters
query
System.Linq.Expressions.Expression System.Linq.Expressions.Expression

The query to generate a cache key for.

async
System.Boolean System.Boolean

True if the query will be executed asynchronously.

Returns
System.Object System.Object

An object representing a query cache key.