func GetKey(key string) (interface{}, error) {
	connect := Connect()
	reply, err := connect.Do("GET", key)
	if err != nil {
		return nil, err
	}
	return reply, err
}
GetKey returns a redis value
package redis
import (
	"log"
	"os"
	"github.com/garyburd/redigo/redis"
	"github.com/jbelmont/containerized-golang-and-vuejs/model"
)
type User struct {
	ID        int    `json:"id"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Email     string `json:"email"`
	Gender    string `json:"gender"`
}
type Conn struct {
	RedisSession redis.Conn
}
const (
	localDial = "localhost:6379"
	redisURL  = "REDIS_URL"
	users     = "users"
)
var (
	dockerDial = os.Getenv(redisURL)
)
func getDial() string {
	var dial string
	if os.Getenv(redisURL) == "redis" {
		dial = os.Getenv(redisURL)
	} else {
		dial = localDial
	}
	return dial
}
type Users []User
var connect redis.Conn
func SetKey(key string, data interface{}) {
	connect := Connect()
	if data == nil {
		log.Println("should not be nil")
	}
	_, err := connect.Do("SET", key, data)
	if err != nil {
		log.Fatal(err, "not ok")
	}
	defer connect.Close()
}