radixurl

package module
v0.0.0-...-36e76e7 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2015 License: MIT Imports: 6 Imported by: 2

README

go-radixurl

Connect to a redis instance using a REDIS_URL.

Usage

It uses Radix Redis under the hood:

import "github.com/josegonzalez/go-radixurl"

// Connect using os.Getenv("REDIS_URL").
c, err := radixurl.Connect()

// Alternatively, connect using a custom Database URL.
c, err := radixurl.ConnectToURL("redis://...")

In both cases you will get the result values of calling redis.DialTimeout(...), that is, an instance of redis.Client and an error.

Installation

Install it using the "go get" command:

go get github.com/josegonzalez/go-radixurl

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() (*redis.Client, error)

func ConnectToURL

func ConnectToURL(s string) (c *redis.Client, 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