redis

package
v1.1.25 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*redis.Client
}

func New

func New(ctx context.Context, creds *Credentials) (*Client, error)

func (*Client) Check

func (r *Client) Check(ctx context.Context) error

type Credentials

type Credentials struct {
	Host     string `mapstructure:"host"`
	Password string `mapstructure:"password"`
}

type RedisClient

type RedisClient interface {
	redis.Client
	Check(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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