کتابخانه EntityFrameworkCore.Cacheable
200, OK
https://github.com/SteffenMangold/EntityFrameworkCore.Cacheable icon

A high-performance second-level query cache for EF Core.  Nuget Package

Using Example 

dbContext.Books
   .Include(d => d.Pages).ThenInclude(d => d.Lines).Where(d => d.ID == 200)
   .Cacheable(TimeSpan.FromSeconds(60))


Performance Test  

Cacheable vs DataBase

Average database query duration [+00:00:00.0026076].
Average cache query duration [+00:00:00.0000411].
Cached queries are x63 times faster. 

Cacheable vs In-Memory
Average database query duration [+00:00:00.1698972].
Average cache query duration [+00:00:00.0000650].
Cached queries are x2,611 times faster. 
کتابخانه EntityFrameworkCore.Cacheable