redis

package
v0.0.0-...-f86ead6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayToMap

func ArrayToMap(array []interface{}, values interface{}) error

func Do

func Do(cmd string, args ...interface{}) (interface{}, error)

func Get

func Get() (redis.Conn, error)

func ReplyToMap

func ReplyToMap(reply interface{}, values interface{}) error

func ScanHash

func ScanHash(key string) ([]interface{}, error)

Types

type Config

type Config struct {
	MaxIdle      int    `xml:"maxIdle"`
	MaxActive    int    `xml:"maxActive"`
	IdleTimeout  int    `xml:"idleTimeout"`
	ExhaustWait  bool   `xml:"exhaustWait"`
	Address      string `xml:"address"`
	Password     string `xml:"password"`
	ConnTimeout  int    `xml:"connTimeout"`
	ReadTimeout  int    `xml:"readTimeout"`
	WriteTimeout int    `xml:"writeTimeout"`
}

Jump to

Keyboard shortcuts

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