Storage

type StorageConfig struct {
   *redis.Storage
   Driver   string `yaml:"driver" env:"STORAGE_DRIVER"`
   Name     string `yaml:"name" env:"STORAGE_NAME"`
   Host     string `yaml:"host" env:"STORAGE_HOST"`
   Username string `yaml:"username" env:"STORAGE_USERNAME"`
   Password string `yaml:"password" env:"STORAGE_PASSWORD"`
   Port     int    `yaml:"port" env:"STORAGE_PORT"`
   DB       int    `yaml:"db" env:"STORAGE_DB"`
}

Last updated