modulepackage
0.0.0-20180322091936-eb325bc7a4b8
Repository: https://github.com/soveran/redisurl.git
Documentation: pkg.go.dev
# README
redisurl
Connect to Redis using a REDIS_URL
.
Usage
It uses Redigo under the hood:
import "redisurl"
// Connect using os.Getenv("REDIS_URL").
c, err := redisurl.Connect()
// Alternatively, connect using a custom Redis URL.
c, err := redisurl.ConnectToURL("redis://...")
In both cases you will get the result values of calling
redis.Dial(...)
, that is, an instance of redis.Conn
and an
error.
Installation
Install it using the "go get" command:
go get github.com/soveran/redisurl