Class CompiledQueryCacheKeyGenerator
- Namespace
- Microsoft.EntityFrameworkCore.Query
- Assembly
- Microsoft.EntityFrameworkCore.dll
public class CompiledQueryCacheKeyGenerator : ICompiledQueryCacheKeyGenerator
- Inheritance
-
CompiledQueryCacheKeyGenerator
- Implements
- Inherited Members
Constructors
CompiledQueryCacheKeyGenerator(CompiledQueryCacheKeyGeneratorDependencies)
Initializes a new instance of the CompiledQueryCacheKeyGenerator class.
public CompiledQueryCacheKeyGenerator(CompiledQueryCacheKeyGeneratorDependencies dependencies)
Parameters
dependencies
CompiledQueryCacheKeyGeneratorDependenciesParameter object containing dependencies for this service.
Properties
Dependencies
Dependencies for this service.
protected virtual CompiledQueryCacheKeyGeneratorDependencies Dependencies { get; }
Property Value
Methods
GenerateCacheKey(Expression, bool)
public virtual object GenerateCacheKey(Expression query, bool async)
Parameters
query
Expressionasync
bool
Returns
GenerateCacheKeyCore(Expression, bool)
Generates the cache key for the given query.
protected CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey GenerateCacheKeyCore(Expression query, bool async)
Parameters
query
ExpressionThe query to get the cache key for.
async
boolA value indicating whether the query will be executed asynchronously.
Returns
- CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey
The cache key.