redis

package
v0.0.0-...-a470c86 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB(cfg config.Config, position int) (*redis.Client, error)

DB creates a new redis client

Types

type Provider

type Provider interface {
	HExistsVal(ctx context.Context, key, field string) bool
	HGetInt(ctx context.Context, key, field string) (int, error)
	HGetAllResult(ctx context.Context, key string) (map[string]string, error)
	HSetResult(ctx context.Context, key string, values ...interface{}) (int64, error)
	HDelResult(ctx context.Context, key string, fields ...string) (int64, error)
}

func NewMockProvider

func NewMockProvider(cfg config.Config, tracing tracing.Provider) Provider

func NewProvider

func NewProvider(cfg config.Config, tracing tracing.Provider) (Provider, error)

Jump to

Keyboard shortcuts

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