public CachedAuthorRepository(ReadonlyRepository <Author, AuthorDbContext> innerRepo, IMemoryCache cache) : base(innerRepo, cache) { }
public CachedRepository(D dbContext, IMemoryCache cache) { this.innerRepo = new ReadonlyRepository <T, D>(dbContext); this.cache = cache; }