redis

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultDialTimeout     = 15 * time.Second
	DefaultConnMaxIdleTime = 3 * time.Second
	DefaultPoolSize        = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*rd.Client
}

type ClusterClient added in v0.0.6

type ClusterClient struct {
	*rd.ClusterClient
}

type KubeDBClientBuilder

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

func NewKubeDBClientBuilder

func NewKubeDBClientBuilder(kc client.Client, db *api.Redis) *KubeDBClientBuilder

func (*KubeDBClientBuilder) GetRedisClient

func (o *KubeDBClientBuilder) GetRedisClient(ctx context.Context) (*Client, error)

func (*KubeDBClientBuilder) GetRedisClusterClient added in v0.0.6

func (o *KubeDBClientBuilder) GetRedisClusterClient(ctx context.Context) (*ClusterClient, error)

func (*KubeDBClientBuilder) WithPod

func (o *KubeDBClientBuilder) WithPod(podName string) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithURL

Jump to

Keyboard shortcuts

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