typredis

package
v0.8.21 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string `required:"true" default:"localhost"`
	Port     string `required:"true" default:"6379"`
	Password string `default:"redispass"`
	DB       int    `default:"0"`

	PoolSize           int           `envconfig:"POOL_SIZE"  default:"20" required:"true"`
	DialTimeout        time.Duration `envconfig:"DIAL_TIMEOUT" default:"5s" required:"true"`
	ReadWriteTimeout   time.Duration `envconfig:"READ_WRITE_TIMEOUT" default:"3s" required:"true"`
	IdleTimeout        time.Duration `envconfig:"IDLE_TIMEOUT" default:"5m" required:"true"`
	IdleCheckFrequency time.Duration `envconfig:"IDLE_CHECK_FREQUENCY" default:"1m" required:"true"`
	MaxConnAge         time.Duration `envconfig:"MAX_CONN_AGE" default:"30m" required:"true"`
}

Config is Redis Configuration

type Redis added in v0.8.20

type Redis struct {
	// contains filtered or unexported fields
}

Redis of Redis

func New added in v0.8.15

func New() *Redis

New Redis Redis

func (*Redis) Commands added in v0.8.20

func (m *Redis) Commands(c *typbuildtool.Context) []*cli.Command

Commands of module

func (*Redis) Configure added in v0.8.20

func (m *Redis) Configure(loader typcfg.Loader) *typcfg.Detail

Configure Redis

func (*Redis) Destroy added in v0.8.20

func (m *Redis) Destroy() []*typdep.Invocation

Destroy dependencies

func (*Redis) DockerCompose added in v0.8.20

func (m *Redis) DockerCompose(version typdocker.Version) *typdocker.ComposeObject

DockerCompose template

func (*Redis) Prepare added in v0.8.20

func (m *Redis) Prepare() []*typdep.Invocation

Prepare the module

func (*Redis) Provide added in v0.8.20

func (m *Redis) Provide() []*typdep.Constructor

Provide dependencies

func (*Redis) WithPrefix added in v0.8.20

func (m *Redis) WithPrefix(prefix string) *Redis

WithPrefix to return module with new prefix

func (*Redis) WithdockerImage added in v0.8.20

func (m *Redis) WithdockerImage(dockerImage string) *Redis

WithdockerImage to return module with new docker image

func (*Redis) WithdockerName added in v0.8.20

func (m *Redis) WithdockerName(dockerName string) *Redis

WithdockerName to return module with new docker name

func (*Redis) Withhost added in v0.8.20

func (m *Redis) Withhost(host string) *Redis

Withhost to return module with new host

func (*Redis) Withpassword added in v0.8.20

func (m *Redis) Withpassword(password string) *Redis

Withpassword to return module with new password

func (*Redis) Withport added in v0.8.20

func (m *Redis) Withport(port string) *Redis

Withport to return module with new port

Jump to

Keyboard shortcuts

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