redis

package
v0.0.0-...-d10ae67 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT 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 interface {
	Do(cmd string, args ...interface{}) (string, error)
	Close() error
}

func NewClusterClient

func NewClusterClient(opts *redis.Options) (Client, error)

func NewRedisClient

func NewRedisClient(addr []string, password string, db int) (Client, error)

func NewSimpleClient

func NewSimpleClient(addr string, opts ...redis.DialOption) (Client, error)

type ClusterClient

type ClusterClient struct {
	// contains filtered or unexported fields
}

func (*ClusterClient) Close

func (c *ClusterClient) Close() error

func (*ClusterClient) Do

func (c *ClusterClient) Do(cmd string, args ...interface{}) (string, error)

type SimpleClient

type SimpleClient struct {
	// contains filtered or unexported fields
}

func (*SimpleClient) Close

func (c *SimpleClient) Close() error

func (*SimpleClient) Do

func (c *SimpleClient) Do(cmd string, args ...interface{}) (string, error)

Jump to

Keyboard shortcuts

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