public CacheService( ICacheEntryRepository cacheEntryRepository, INow now) { if (now == null) { throw new ArgumentNullException(nameof(now), $"{nameof(now)} is null."); } if (cacheEntryRepository == null) { throw new ArgumentNullException(nameof(cacheEntryRepository)); } _cacheEntryRepository = cacheEntryRepository; _now = now; }
public DistributedCache(ICacheEntryRepository repo) { this.repo = repo; }