cache

package
v0.0.0-...-e7cb044 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectRedis

func ConnectRedis(conf *Config) (*redis.Client, error)

ConnectRedis connects to redis.

Types

type Config

type Config struct {
	Address  string
	Password string
	DB       int
}

Config represents cache configuration.

func (Config) Validate

func (cfg Config) Validate() error

Validate validates the cache configuration.

Jump to

Keyboard shortcuts

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