redism

package
v0.0.0-...-2fc8fe3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redism

type Redism interface {
	Get(name, opt, key string) redis.Conn
	GetScript(key string) *redis.Script
	Close() error
}

Redism define the function supported

func NewRedism

func NewRedism(conf RedismConf) Redism

NewRedism generate a redism client

type RedismConf

type RedismConf struct {
	Maxactive   int
	Maxidle     int
	Idletimeout int
	//storge the address in the array
	Masters map[string]([]string)
	Slaves  map[string]([][]string)
}

RedismConf give out the configuration about redismconf

Jump to

Keyboard shortcuts

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