fakes

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: 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 struct {
	ExpectedRDBPathErr error
	ExpectedRDBPath    string
	InvokedRDBPath     int

	RunBGSaveCallCount   int
	ExpectedRunGBSaveErr error

	WaitForNewSaveSinceCallCount   int
	ExpectedWaitForNewSaveSinceErr error
	PingReturns                    error

	Host string
	Port int
}

func (*Client) Address

func (c *Client) Address() string

func (*Client) Disconnect

func (c *Client) Disconnect() error

func (*Client) EnableAOF

func (c *Client) EnableAOF() error

func (*Client) Exec

func (c *Client) Exec(command string, args ...interface{}) (interface{}, error)

func (*Client) GetConfig

func (c *Client) GetConfig(key string) (string, error)

func (*Client) GlobalKeyCount

func (c *Client) GlobalKeyCount() (int, error)

func (*Client) Info

func (c *Client) Info() (map[string]string, error)

func (*Client) InfoField

func (c *Client) InfoField(fieldName string) (string, error)

func (*Client) LastRDBSaveTime

func (c *Client) LastRDBSaveTime() (int64, error)

func (*Client) Ping

func (c *Client) Ping() error

func (*Client) RDBPath

func (c *Client) RDBPath() (string, error)

func (*Client) RunBGSave

func (c *Client) RunBGSave() error

func (*Client) WaitForNewSaveSince

func (c *Client) WaitForNewSaveSince(lastSaveTime int64, timeout time.Duration) error

func (*Client) WaitUntilRedisNotLoading

func (c *Client) WaitUntilRedisNotLoading(timeoutMilliseconds int) error

Jump to

Keyboard shortcuts

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