memdb

package
v0.0.0-...-716047f Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: BSD-2-Clause Imports: 5 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 = redis.Conn

type Pool

type Pool = redis.Pool

func NewMockPool

func NewMockPool(conn *redigomock.Conn) *Pool

NewMockPool creates a mock pool for testing

func NewPool

func NewPool(address string, db int) *Pool

NewPool returns redis client pool when a client is required, use `pool.Get()` and close it once it is no longer needed.

func NewTestPool

func NewTestPool() *Pool

NewTestPool creates a connection pool for the integration test

type TestSuite

type TestSuite struct {
	suite.Suite
	Pool *redis.Pool
	Conn redis.Conn
}

func (*TestSuite) ClearKeys

func (s *TestSuite) ClearKeys(keys ...string)

func (*TestSuite) SetupSuite

func (s *TestSuite) SetupSuite()

func (*TestSuite) TearDownSuite

func (s *TestSuite) TearDownSuite()

Jump to

Keyboard shortcuts

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