This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using MediatR; | |
using Microsoft.Extensions.Logging; | |
using Polly; | |
namespace Foo.Bar | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CacheService : ICache | |
{ | |
private readonly string _keyPrefix; | |
private readonly IDistributedCache _cache; | |
private readonly IConfiguration _config; | |
public CacheService(IDistributedCache cache, IConfiguration config) | |
{ | |
_cache = cache; | |
_config = config; |