ICompiledQueryCacheKeyGenerator ICompiledQueryCacheKeyGenerator Interface

A cache key generator for the compiled query cache.

Syntax

Declaration

public interface ICompiledQueryCacheKeyGeneratorPublic Interface ICompiledQueryCacheKeyGenerator

Methods summary

Generates a cache key.

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.

Details

Assembly

Microsoft.EntityFrameworkCore.dll