redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisClient

func NewRedisClient(config Config) gateways.MemDBClient

Types

type Config

type Config struct {
	HostPort string `envconfig:"host_port" default:"localhost:6379"`
	Password string `envconfig:"password" default:"password"`
	DB       int    `envconfig:"db" default:"0"`
}

Config is Redis settings.

Jump to

Keyboard shortcuts

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