mengstack-api/internal/app/cache/module.go
MengStack Dev fbf9af32f0 Initial commit: MengStack Go API framework
Clean public release with:
- Go/Gin/PostgreSQL/Redis architecture
- Multi-tenant support
- JWT authentication
- Docker Compose deployment
- Environment-based configuration
2026-10-03 00:14:40 +08:00

15 lines
237 B
Go

package cache
import (
"mengstack/internal/config"
"go.uber.org/fx"
"github.com/redis/go-redis/v9"
)
var Module = fx.Module("cache",
fx.Provide(func(cfg *config.Config) (*redis.Client, error) {
return NewRedis(cfg.Redis)
}),
)