Use hash for configuration

I think it is better to use hash for configuration, the configuration now looks like this

```javascript
      hosts: [
        [
        {
          host: '127.0.0.1',
          port: 6380,
          password: 'sostrong',
        },
        {
          host: '127.0.0.1',
          port: 6381,
          password: 'sostrong'
        }
        ]
      ]
```