• Facebook
  • Twitter
  • Youtube
  • LinkedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Try NCache
  • Contact Us
Try NCache
Show / Hide Table of Contents

Class QueryCacheExtensions

A static class that contains extension methods for caching Entity Framework query result sets.

Inheritance
System.Object
QueryCacheExtensions
Namespace:
Assembly: Alachisoft.NCache.EntityFrameworkCore.dll
Syntax
public static class QueryCacheExtensions : object

Methods

Name Description
FromCache<T>(QueryDeferred<T>, CachingOptions)

Checks if the result is available in cache or not. If it is available it is fetched from the cache and returned however if it is not available the query is executed on the database and the result is stored in cache as well as returned.

FromCache<T>(QueryDeferred<T>, out String, CachingOptions)

Checks if the result is available in cache or not. If it is available it is fetched from the cache and returned however if it is not available the query is executed on the database and the result is stored in cache as well as returned.

FromCache<T>(IQueryable<T>, CachingOptions)

Checks if the result set is available in cache or not. If it is available it is fetched from the cache and returned however if it is not available the query is executed on the database and the result set is stored in cache as well as returned.

FromCache<T>(IQueryable<T>, out String, CachingOptions)

Checks if the result set is available in cache or not. If it is available it is fetched from the cache and returned however if it is not available the query is executed on the database and the result set is stored in cache as well as returned.

FromCacheAsync<T>(QueryDeferred<T>, CachingOptions)

Asynchronously Checks if the result is available in cache or not. If it is available it is fetched from the cache and returned however if it is not available the query is executed on the database and the result is stored in cache as well as returned. The result is encapsulated in a task and returned.

FromCacheAsync<T>(IQueryable<T>, CachingOptions)

Asynchronously Checks if the result set is available in cache or not. If it is available it is fetched from the cache and returned however if it is not available the query is executed on the database and the result set is stored in cache as well as returned. The result set is encapsulated in a task and returned.

FromCacheOnly<T>(QueryDeferred<T>)

Executes the query on the cache and returns the result as generic type.

FromCacheOnly<T>(IQueryable<T>)

Executes the query on the cache and returns the result as generic IEnumerable.

FromCacheOnlyAsync<T>(QueryDeferred<T>)

Executes the query on the cache Asynchronously and returns the result set as generic IEnumerable encapsulated as a task.

FromCacheOnlyAsync<T>(IQueryable<T>)

Executes the query on the cache Asynchronously and returns the result set as generic IEnumerable encapsulated as a task.

GetDependency(DependencyType, String, String)

Return the result of the query from the cache. If the query is not cached yet, the query is materialized asynchronously and cached before being returned.

LoadIntoCache<T>(QueryDeferred<T>, CachingOptions)

Executes the query on the database irrespective of the fact that the result could have been in the cache and could have been served from there and updates the result in the cache.

LoadIntoCache<T>(QueryDeferred<T>, out String, CachingOptions)

Executes the query on the database irrespective of the fact that the result could have been in the cache and could have been served from there and updates the result set in the cache.

LoadIntoCache<T>(IQueryable<T>, CachingOptions)

Executes the query on the database irrespective of the fact that the result set could have been in the cache and could have been served from there and updates the result set in the cache.

LoadIntoCache<T>(IQueryable<T>, out String, CachingOptions)

Executes the query on the database irrespective of the fact that the result set could have been in the cache and could have been served from there and updates the result set in the cache.

LoadIntoCacheAsync<T>(QueryDeferred<T>, CachingOptions)

Executes the query on the database irrespective of the fact that the result could have been in the cache and could have been served from there and updates the result in the cache.

LoadIntoCacheAsync<T>(IQueryable<T>, CachingOptions)

Executes the query on the database irrespective of the fact that the result set could have been in the cache and could have been served from there and updates the result set in the cache.

Contact Us

PHONE

+1 214-619-2601   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Try NCache
Pricing
NCache Playground

Deployments
  • Cloud
  • Docker
  • Kubernetes
  • On-Premises
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • SignalR Backplane
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Blogs
  • Foundations
  • Videos
  • Comparisons
  • Shows
  • Whitepapers
  • Articles
  • Tech Talks
  • Magazine Articles
  • Third-Party Articles
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Docs
  • Schedule a Demo
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Terms of Use
  •  
  • Privacy Policy
  •  
  • Cookie Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
  • Facebook
  • Twitter
  • Youtube
  • LinkedIn
  • RSS