public RedisCacheService(IOptions <RedisCacheOptions> redisCacheOptions) { _redisCacheOptions = redisCacheOptions.Value; _lazyConnection = new Lazy <ConnectionMultiplexer>(() => ConnectionMultiplexer.Connect(redisCacheOptions.Value.GetConnectionString())); }