valkey

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context, logger *zap.Logger, cfg Config, opts ...Option) (valkey.Client, error)

Types

type Config

type Config struct {
	Password    string
	InitAddress []string

	InitialBackoffInterval time.Duration
	MaxBackoffElapsedTime  time.Duration
}

func NewConfig

func NewConfig() Config

type Dialer

type Dialer func(valkey.ClientOption) (valkey.Client, error)

Dialer used to inject the dialer function for testing purposes

type Option

type Option func(*settings)

func WithDialer

func WithDialer(d Dialer) Option

Jump to

Keyboard shortcuts

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