redis

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNil

func IsNil(err error) bool

IsNil 判断 redis 返回的错误是否表示 key 不存在

Types

type Client

type Client struct {
	*redis.Client
	// contains filtered or unexported fields
}

func New

func New(address string) (client *Client, err error)

func (*Client) Address

func (c *Client) Address(db int) string

func (*Client) Select

func (c *Client) Select(db int) (client *Client, err error)

Jump to

Keyboard shortcuts

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