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

Method LoadIntoCache

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.

Declaration
public static IEnumerable<T> LoadIntoCache<T>(this IQueryable<T> query, CachingOptions options)
    where T : class
Parameters
Type Name Description
IQueryable<T> query

The query to be executed.

CachingOptions options

The option that will be used to store the result set.

Returns
Type Description
IEnumerable<T>

Returns the result set of the query after executing it on the databse and storing it in the cache.

Type Parameters
Name Description
T

The generic type of the collection

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.

Declaration
public static IEnumerable<T> LoadIntoCache<T>(this IQueryable<T> query, out string cacheKey, CachingOptions options)
    where T : class
Parameters
Type Name Description
IQueryable<T> query

The query to be executed.

System.String cacheKey

The key against which the result set will be cached is returned as out parameter.

CachingOptions options

The option that will be used to store the result set.

Returns
Type Description
IEnumerable<T>

Returns the result set of the query after executing it on the databse and storing it in the cache.

Type Parameters
Name Description
T

The generic type of the collection

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.

Declaration
public static T LoadIntoCache<T>(this QueryDeferred<T> query, CachingOptions options)
Parameters
Type Name Description
Alachisoft.NCache.EntityFrameworkCore.QueryDeferred<T> query

The query to be executed.

CachingOptions options

The option that will be used to store the result.

Returns
Type Description
T

Returns the result of the query after executing it on the databse and storing it in the cache.

Type Parameters
Name Description
T

The generic type of the result

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.

Declaration
public static T LoadIntoCache<T>(this QueryDeferred<T> query, out string cacheKey, CachingOptions options)
Parameters
Type Name Description
Alachisoft.NCache.EntityFrameworkCore.QueryDeferred<T> query

The query to be executed.

System.String cacheKey

The key against which the result will be cached is returned as out parameter.

CachingOptions options

The option that will be used to store the result.

Returns
Type Description
T

Returns the result of the query after executing it on the databse and storing it in the cache.

Type Parameters
Name Description
T

The generic type of the collection

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