All Projects → soveran → redisurl

soveran / redisurl

Licence: other
Connect to Redis using a REDIS_URL and the redigo client.

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].