kredis

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client = redis.Client

type ClusterClient

type ClusterClient = redis.ClusterClient

type ClusterConfig

type ClusterConfig struct {
	Addrs        []string      `default:"-"`
	DialTimeout  time.Duration `default:"3s"`
	ReadTimeout  time.Duration `default:"1s"`
	WriteTimeout time.Duration `default:"1s"`
	Password     string        `default:""`
	DB           int           `default:"0"`
}

func (ClusterConfig) Build

func (c ClusterConfig) Build() *ClusterClient

type Config

type Config struct {
	Addr         string        `default:"-"`
	DialTimeout  time.Duration `default:"3s"`
	ReadTimeout  time.Duration `default:"1s"`
	WriteTimeout time.Duration `default:"1s"`
	Password     string        `default:""`
	DB           int           `default:"0"`
}

func (Config) Build

func (c Config) Build() *Client

Jump to

Keyboard shortcuts

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