Complete lab2 grade 4 implementation and report
This commit is contained in:
+4
-1
@@ -14,6 +14,7 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"gitflic.ru/project/d-sotnikova5/mtusi2026lab1-fork/internal/cache"
|
||||
"gitflic.ru/project/d-sotnikova5/mtusi2026lab1-fork/internal/httpapi"
|
||||
"gitflic.ru/project/d-sotnikova5/mtusi2026lab1-fork/internal/store"
|
||||
)
|
||||
@@ -54,7 +55,9 @@ func run() error {
|
||||
return err
|
||||
}
|
||||
defer pool.Close()
|
||||
db := store.NewPostgresStore(pool)
|
||||
profiles := cache.NewProfiles(envOrDefault("REDIS_ADDR", "redis:6379"))
|
||||
defer profiles.Close()
|
||||
db := store.NewPostgresStore(pool).WithProfiles(profiles)
|
||||
|
||||
var stopping atomic.Bool
|
||||
ttl, err := strconv.ParseInt(envOrDefault("SESSION_TTL_SECONDS", "3600"), 10, 64)
|
||||
|
||||
Reference in New Issue
Block a user