redisurl

package
v0.0.0-...-85b1f09 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2016 License: MIT Imports: 5 Imported by: 0

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() (redis.Conn, error)

func ConnectToURL

func ConnectToURL(s string) (c redis.Conn, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL