-
Notifications
You must be signed in to change notification settings - Fork 5
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:
The DotNetToolkit.Repository.Extensions.Microsoft.Caching.Memory provides an in-memory caching provider for the repositories.
var options = new RepositoryOptionsBuilder()
.UseCachingProvider(new InMemoryCacheProvider())
.Options;