Files
goravel/config/queue.go
Bowens fcdf5517b3 Upgrade v1.5.0
1. Add FileStorage Module;
2022-11-22 22:42:58 +08:00

29 lines
674 B
Go

package config
import (
"github.com/goravel/framework/facades"
)
func init() {
config := facades.Config
config.Add("queue", map[string]interface{}{
// Default Queue Connection Name
"default": config.Env("QUEUE_CONNECTION", "sync"),
// Queue Connections
//
// Here you may configure the connection information for each server that is used by your application.
// Drivers: "sync", "redis"
"connections": map[string]interface{}{
"sync": map[string]interface{}{
"driver": "sync",
},
"redis": map[string]interface{}{
"driver": "redis",
"connection": "default",
"queue": config.Env("REDIS_QUEUE", "default"),
},
},
})
}