redistest

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalHost   = "localhost"
	DefaultPort = 6379
)

Variables

This section is empty.

Functions

func ExecYCSB added in v1.0.0

func ExecYCSB(t *testing.T) error

func ExecYCSBWorkload added in v1.0.0

func ExecYCSBWorkload(t *testing.T, defaultWorkload string) error

Types

type Client

type Client struct {
	*goredis.Client
}

Client represents a client for the Redis server.

func NewClient

func NewClient() *Client

NewClient returns a client instance.

func (*Client) Close

func (client *Client) Close() error

Close closes the current connection with the specified host.

func (*Client) Open

func (client *Client) Open(host string) error

Open opens a connection with the specified host. nolint: exhaustivestruct

type Server

type Server struct {
	*server.Server
}

Server represents an example server.

func NewServer

func NewServer() *Server

NewServer returns an example server instance.

Jump to

Keyboard shortcuts

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