redis

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(addr string) (c redis.Conn, err error)

func CreateCluster added in v0.0.22

func CreateCluster(nodes []string) (*redisCluster.Cluster, error)

创建redis cluster对象

func CreatePool

func CreatePool(addr string, maxActive int) (pool *redis.Pool, err error)

创建连接池 @addr redis地址 @maxActive 最大连接数,如果为0,那么就默认为10000

Types

This section is empty.

Jump to

Keyboard shortcuts

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