Skip to content

Caching

Johelvis Guzman edited this page Feb 27, 2019 · 5 revisions

The DotNetToolkit.Repository also supports the ability for caching queries within the repositories by allowing the use of caching providers.

Currently, the following caching providers are supported by the DotNetToolkit.Repository:

Microsoft Memory Caching

The DotNetToolkit.Repository.Extensions.Microsoft.Caching.Memory provides an in-memory caching provider for the repositories.

var options = new RepositoryOptionsBuilder()
     .UseCachingProvider(new InMemoryCacheProvider())
     .Options;
Clone this wiki locally