public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IRedisData redisService)
 {
     if (env.IsDevelopment())
     {
         app.UseDeveloperExceptionPage();
     }
     app.UseRouting();
     app.UseAuthorization();
     app.UseEndpoints(endpoints =>
     {
         endpoints.MapControllers();
     });
     redisService.Connect();
     app.UseSwagger();
     app.UseSwaggerUI(c =>
     {
         c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
     });
 }
        public bool Set(string key, string value)
        {
            var db = _redisData.Connect();

            return(db.StringSet(key, value));
        }