redisserver

package
v1.18.0-rc Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package redisserver is package for starting a redis test server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server added in v0.33.2

type Server interface {
	Addr() string
	Close() error
}

Server represents a redis server.

func Mini

func Mini(ctx context.Context) (Server, error)

Mini starts miniredis server.

func Process

func Process(ctx context.Context) (Server, error)

Process starts a redis-server test process.

func Start

func Start(ctx context.Context) (Server, error)

Start starts a redis-server when available, otherwise falls back to miniredis.

Jump to

Keyboard shortcuts

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