func NewClient(c Configuration) (*Client, error) {
	client := redis.NewClient(&redis.Options{
		Addr:     c.Address,
		Password: c.Password,
		DB:       c.Database,
	})

	err := client.Ping().Err()

	if err != nil {
		return nil, err
	}

	return &Client{Client: client}, err
}
// NewClient creates a redis client
NewClient creates a redis client
// NewClient creates a redis client
func NewClient(c Configuration) (*Client, error) {
	client := redis.NewClient(&redis.Options{
		Addr:     c.Address,
		Password: c.Password,
		DB:       c.Database,
	})
	err := client.Ping().Err()
	if err != nil {
		return nil, err
	}
	return &Client{Client: client}, err
}
func NewClient ( c Configuration ) ( * Client , error ) { client := redis . NewClient ( & redis . Options { Addr : c . Address , Password : c . Password , DB : c . Database , } ) err := client . Ping ( ) . Err ( ) if err != nil { return nil , err } return & Client { Client : client } , err }
NewClient creates a redis client
NewClient creates a redis client