Documentation ¶
Overview ¶
Package redis defines redis-specific configurations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string `env:"REDIS_HOST, default=127.0.0.1"` Port string `env:"REDIS_PORT, default=6379"` Username string `env:"REDIS_USERNAME"` Password string `env:"REDIS_PASSWORD"` IdleTimeout time.Duration `env:"REDIS_IDLE_TIMEOUT, default=1m"` MaxIdle int `env:"REDIS_MAX_IDLE, default=16"` MaxActive int `env:"REDIS_MAX_ACTIVE, default=64"` }
Config defines the default redis configuration and env processing.
Click to show internal directories.
Click to hide internal directories.