redis

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 4 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 interface {
	GET(string) ([]byte, error)
	SET(string, []byte) error
	KEYS(string) ([]string, error)
	MGET(...interface{}) ([][]byte, error)
}

func NewClient

func NewClient() Client

type MockClient

type MockClient struct {
	mock.Mock
}

func (*MockClient) GET

func (m *MockClient) GET(key string) ([]byte, error)

func (*MockClient) KEYS

func (m *MockClient) KEYS(regex string) ([]string, error)

func (*MockClient) MGET

func (m *MockClient) MGET(keys ...interface{}) ([][]byte, error)

func (*MockClient) SET

func (m *MockClient) SET(key string, value []byte) error

Jump to

Keyboard shortcuts

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