r

package
v0.0.0-...-89dcf06 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

close redis pool

Types

type R

type R struct {
	// contains filtered or unexported fields
}

func Dal

func Dal(name string) *R

func (*R) Get

func (r *R) Get(key string) (res string, err error)

redis get 操作

type RedisConfig

type RedisConfig struct {
	Host     string
	Port     string
	Password string
	Db       int
}

func SetConf

func SetConf() *RedisConfig

func (*RedisConfig) Dial

func (redisConfig *RedisConfig) Dial() error

Jump to

Keyboard shortcuts

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