log middleware
This commit is contained in:
13
database/redis.go
Normal file
13
database/redis.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package database
|
||||
|
||||
import "github.com/redis/go-redis/v9"
|
||||
|
||||
var RedisClient *redis.Client
|
||||
|
||||
func ConnectRedis() {
|
||||
RedisClient = redis.NewClient(&redis.Options{
|
||||
Addr: "redis:6379",
|
||||
Password: "",
|
||||
DB: 0,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user