redis

package module
v0.0.0-...-587ae80 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package redis ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, cfg RawConfig) (*redis.Client, error)

Types

type RawConfig

type RawConfig struct {
	Host     string `envconfig:"REDIS_HOST,default=127.0.0.1"`
	Port     string `envconfig:"REDIS_PORT,default=6379"`
	User     string `envconfig:"REDIS_USER,default=default"`
	Password string `envconfig:"REDIS_PASSWORD,optional"`
	Database int    `envconfig:"REDIS_DATABASE,default=0"`
}

Jump to

Keyboard shortcuts

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