cache

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	Enabled    bool   `mapstructure:"enabled" description:"true if cache is enabled"`
	Port       int    `mapstructure:"port" description:"port for redis-cache"`
	Host       string `mapstructure:"host" description:"host for redis-cache"`
	Password   string `mapstructure:"password" description:"password for redis-cache"`
	TLSEnabled bool   `mapstructure:"tls_enabled" description:"true if tls is enabled"`
	MaxRetries int    `mapstructure:"max_retries" description:"maximum number of retries before giving up"`
}

Settings type to be loaded from the environment

func DefaultSettings

func DefaultSettings() *Settings

DefaultSettings returns default values for cache settings

Jump to

Keyboard shortcuts

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