rd

package
v0.0.0-...-88ac1a3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFunctioningClient

func IsFunctioningClient(rdb RDCloser) (bool, error)

Types

type RDCloser

type RDCloser interface {
	redis.UniversalClient
}

RDCloser is an interface that combines the redis.Cmdable and io.Closer interfaces, ensuring that we can close the client connection.

func NewRedisCloser

func NewRedisCloser(opts *RedisCloserOptions) (RDCloser, error)

type RedisCloserOptions

type RedisCloserOptions struct {
	Logger         *zap.Logger
	URLs           []string
	ClusterEnabled bool
	Password       string
}

Jump to

Keyboard shortcuts

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