client

package
v0.0.0-...-ff29edb Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 9 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 interface {
	Disconnect() error
	WaitUntilRedisNotLoading(timeoutMilliseconds int) error
	EnableAOF() error
	LastRDBSaveTime() (int64, error)
	Info() (map[string]string, error)
	InfoField(fieldName string) (string, error)
	GlobalKeyCount() (int, error)
	GetConfig(key string) (string, error)
	RDBPath() (string, error)
	Address() string
	WaitForNewSaveSince(lastSaveTime int64, timeout time.Duration) error
	RunBGSave() error
	Ping() error
	Exec(command string, args ...interface{}) (interface{}, error)
}

func Connect

func Connect(options ...Option) (Client, error)

type Option

type Option func(*client)

func CmdAliases

func CmdAliases(aliases map[string]string) Option

Used by redis-backups

func Host

func Host(host string) Option

func Password

func Password(password string) Option

func Port

func Port(port int) Option

func Tls

func Tls(tls bool) Option

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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