This commit is contained in:
2026-01-13 13:27:42 +03:00
parent 5e69454678
commit 4925283ede
27 changed files with 6236 additions and 260 deletions

View File

@@ -1,12 +1,17 @@
package database
import "github.com/redis/go-redis/v9"
import (
"fmt"
"os"
"github.com/redis/go-redis/v9"
)
var RedisClient *redis.Client
func ConnectRedis() {
RedisClient = redis.NewClient(&redis.Options{
Addr: "redis:6379",
Addr: fmt.Sprintf("%s:6379", os.Getenv("REDIS_HOST")),
Password: "",
DB: 0,
})