func (db *DB) SetupClient() error {

	db.dbClient = redis.NewClient(&redis.Options{
		Addr:     defaultServer + ":" + fmt.Sprintf("%d", defaultPort),
		Password: "",
		DB:       0,
	})

	// Check that the database is working / running
	status := db.dbClient.Ping()
	if status.Err() != nil {
		return fmt.Errorf("Error when pinging redis server, is your database running?: \n%s", status.Err())
	}
	return nil
}
// SetupClient sets up the redis client
SetupClient sets up the redis client
// SetupClient sets up the redis client
func (db *DB) SetupClient() error {
	db.dbClient = redis.NewClient(&redis.Options{
		Addr:     defaultServer + ":" + fmt.Sprintf("%d", defaultPort),
		Password: "",
		DB:       0,
	})
	status := db.dbClient.Ping()
	if status.Err() != nil {
		return fmt.Errorf("Error when pinging redis server, is your database running?: \n%s", status.Err())
	}
	return nil
}
func ( db * DB ) SetupClient ( ) error { db . dbClient = redis . NewClient ( & redis . Options { Addr : defaultServer + " " + fmt . Sprintf ( " " , defaultPort ) , Password : " " , DB : 0 , } ) status := db . dbClient . Ping ( ) if status . Err ( ) != nil { return fmt . Errorf ( " \n " , status . Err ( ) ) } return nil }
SetupClient sets up the redis client
SetupClient sets up the redis client
// Check that the database is working / running