redis

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 2 Imported by: 0

README

redis

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRedisNil

func IsRedisNil(err error) bool

IsRedisNil reports missing-key errors from direct Client command results (.Result() / .Err()). Use this when calling app.GetRedisClient(); do not import go-redis in business code.

Types

type Client

type Client struct {
	*goredis.Client
}

Client wraps go-redis; embeds the driver client so all commands (LPush, RPop, …) are available. Business imports github.com/lishimeng/app-starter/redis only, not go-redis.

func NewClient

func NewClient(opts Options) *Client

NewClient creates a Redis client from Options.

func (*Client) Close

func (c *Client) Close() error

Close closes the client connection.

type Options

type Options goredis.Options

Options mirrors go-redis client options; business uses this type only.

Jump to

Keyboard shortcuts

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