redis

package
v0.0.0-...-908d554 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Redis

func Redis() *r.Client

Redis 获取redis

Types

type RedisSentinel

type RedisSentinel struct {
	Enabled bool   `json:"enabled"`
	Master  string `json:"master"`
	XNodes  string `json:"nodes"`
	// contains filtered or unexported fields
}

func (*RedisSentinel) GetNodes

func (s *RedisSentinel) GetNodes() []string

Nodes redis 哨兵节点列表

Jump to

Keyboard shortcuts

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