Closed rubenalves closed 7 months ago
Is there any examples of using memory cache ?
I see this example on the documentation but it does not say how to implement the Cache object.
`var cache = CacheFactory.GetMemoryCache();
using (var connection = new SqlConnection(connectionString)) { var products = connection.QueryAll(cacheKey: "products", cache: cache); }`
The MemoryCache page should help.
Got it. Thanks.
Is there any examples of using memory cache ?
I see this example on the documentation but it does not say how to implement the Cache object.
`var cache = CacheFactory.GetMemoryCache();
using (var connection = new SqlConnection(connectionString)) { var products = connection.QueryAll(cacheKey: "products", cache: cache);
}`