RepoDB
RepoDB copied to clipboard
How to use ExecuteQueryMultiple cache?
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))