redis

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 1 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Nil = redis.Nil

Functions

func Init

func Init(c *Config) error

Init initializes the redis client

Types

type Client

type Client struct {
	*redis.Client
}

Client is a wrapper around redis.Client

func GetClient

func GetClient() *Client

GetClient returns the initialized client

type Config

type Config struct {
	Addr     string
	DB       int
	PoolSize int // defaults to 10
}

Config is the redis configuration

Jump to

Keyboard shortcuts

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