redis

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Manager *redis.Manager

Functions

This section is empty.

Types

type ConnectionConfig added in v0.0.7

type ConnectionConfig struct {
	Addrs      []string `yaml:"addrs"`
	DB         int      `yaml:"database" env:"REDIS_DB"`
	Username   string   `yaml:"username"`
	Password   string   `yaml:"password"`
	MasterName string   `yaml:"master_name"`
	PoolSize   int      `yaml:"pool_size" default:"1000"`
	MaxIdle    int      `yaml:"max_idle" default:"10"`
}

type RedisConfig added in v0.0.5

type RedisConfig struct {
	Default     string `yaml:"default" env:"REDIS_CONNECTION"`
	Connections map[string]ConnectionConfig
}

type Service added in v0.0.5

type Service struct {
}

func (Service) Register added in v0.0.5

func (s Service) Register(app *framework.App) error

Jump to

Keyboard shortcuts

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