redis

package
v0.0.0-...-9528f6d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	Addr     string
	Password string
	DB       int
}

Option is the Redis option.

type Redis

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

Redis is a Redis client wrapper.

func New

func New(opt *Option) (*Redis, error)

New returns a new Redis client.

func (*Redis) Client

func (r *Redis) Client() *redis.Client

Client returns the Redis client.

func (*Redis) Close

func (r *Redis) Close() error

Close closes the Redis client.

Jump to

Keyboard shortcuts

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