redistest

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

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.

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