redis

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: MPL-2.0 Imports: 2 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(ctx context.Context, key string) (interface{}, error)
	MGet(ctx context.Context, keys []string) ([]interface{}, error)
	Set(ctx context.Context, key string, value interface{}) error
	MSet(ctx context.Context, keys []string, values []interface{}) error
	Del(ctx context.Context, keys ...string) error
	Eval(ctx context.Context, script string, keys []string, args []interface{}) (interface{}, error)
}

Client defines a Redis client.

func NewRedigoClient

func NewRedigoClient(url string, maxConnections int) (Client, error)

NewRedigoClient will create a new RedigoClient.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳