iredis

package
v0.0.0-...-523602a Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnRedis

func ConnRedis(c *RedisConf) *redis.Client

func New

func New(c *RedisConf) *redis.Client

Types

type RedisConf

type RedisConf struct {
	Address     string `yaml:"address" json:"address"`
	Database    int16  `yaml:"database" json:"database"`
	Password    string `yaml:"password" json:"password"`
	DialTimeout int64  `yaml:"dial_timeout" json:"dial_timeout"`
}

Jump to

Keyboard shortcuts

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