public IList <RedisDbModel> GetRedisDbs(RedisConnectModel connect)
        {
            var count = _redisClientService.GetDatabaseCount(connect.Guid);

            return(Enumerable.Range(0, count)
                   .Select(t => new RedisDbModel()
            {
                RedisConnect = connect,
                Index = t,
            }).ToArray());
        }
        public async Task <bool> ConnectionAsync(RedisConnectModel connection)
        {
            var connected = await _redisClientService.TryConnectAsync(connection.ConnectionSetting);

            return(connected);
        }
 public async Task CloseConnectionAsync(RedisConnectModel connection)
 {
     await _redisClientService.CloseConnectionAsync(connection.Guid);
 }
 public void RemoveConnection(RedisConnectModel model)
 {
     _settingsService.Remove(model.Guid);
 }