Skip to content

How to use ExecuteQueryMultiple cache? #1044

@seongguk92

Description

@seongguk92

Hello.
I am using it so well.
Is there any way to use cache for ExecuteQueryMultiple ?

var cache = CacheFactory.GetMemoryCache();
using (var connection = new SqlConnection(connectionString))
{
    var expirationInMinutes = 60 * 24; // 1 day
    var products = connection.QueryAll<Product>(cacheKey: "products",
        cacheItemExpiration: expirationInMinutes, cache: cache);
}

When proceeding with a paging operation
Call two select statements.

(paging data (5)/ total count (21))

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfixedThe bug, issue, incident has been fixed.questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions