client

package
v0.0.0-...-33635b2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2017 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

func Host

func Host(host string) Option

func Password

func Password(password string) Option

func Port

func Port(port int) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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