Documentation
¶
Index ¶
- type Client
- func (c *Client) Address() string
- func (c *Client) Disconnect() error
- func (c *Client) EnableAOF() error
- func (c *Client) Exec(command string, args ...interface{}) (interface{}, error)
- func (c *Client) GetConfig(key string) (string, error)
- func (c *Client) GlobalKeyCount() (int, error)
- func (c *Client) Info() (map[string]string, error)
- func (c *Client) InfoField(fieldName string) (string, error)
- func (c *Client) LastRDBSaveTime() (int64, error)
- func (c *Client) Ping() error
- func (c *Client) RDBPath() (string, error)
- func (c *Client) RunBGSave() error
- func (c *Client) WaitForNewSaveSince(lastSaveTime int64, timeout time.Duration) error
- func (c *Client) WaitUntilRedisNotLoading(timeoutMilliseconds int) error
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) Disconnect ¶
func (*Client) GlobalKeyCount ¶
func (*Client) LastRDBSaveTime ¶
func (*Client) WaitForNewSaveSince ¶
func (*Client) WaitUntilRedisNotLoading ¶
Click to show internal directories.
Click to hide internal directories.