redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Creator

func Creator(cfg interface{}) (interface{}, error)

Types

type RedisConfig

type RedisConfig struct {
	Address        string
	Password       string
	ConnectTimeout time.Duration
	ReadTimeout    time.Duration
	WriteTimeout   time.Duration
}

type RedisDB

type RedisDB struct {
	Config *RedisConfig
	Redis  *redis.Client
}

func NewRedis

func NewRedis(cfg *RedisConfig) (*RedisDB, error)

func (*RedisDB) Get

func (this *RedisDB) Get(write bool) *redis.Client

Jump to

Keyboard shortcuts

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