redisclient

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewRedisClient = func(opt *redis.Options) *redis.Client {
	return redis.NewClient(opt)
}

NewRedisClient is a variable wrapper around redis.NewClient so tests can override it.

Functions

This section is empty.

Types

type Client

type Client struct {
	*redis.Client
}

Client holds the Redis client instance.

func NewClient

func NewClient(ctx context.Context, cfg config.RedisConfig) (*Client, error)

NewClient initializes and returns a new Redis client based on configuration.

Jump to

Keyboard shortcuts

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