redis

package
v0.0.0-...-e77dc18 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisClient

func NewRedisClient(ctx context.Context, addr string) *redis.Client

NewRedisClient ...

Types

type DummyClient

type DummyClient struct {
}

DummyClient ...

func NewRedisDummy

func NewRedisDummy() *DummyClient

NewRedisDummy ...

func (*DummyClient) Get

func (d *DummyClient) Get(ctx context.Context, key string) (string, error)

Get ...

type Rediser

type Rediser interface {
	Set(ctx context.Context, key string, value interface{}) error
	Get(ctx context.Context, key string) (string, error)
	Close() error
}

Rediser ...

func New

func New(ctx context.Context, addr string) Rediser

New ...

Jump to

Keyboard shortcuts

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