mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
15 lines
271 B
Go
15 lines
271 B
Go
package persistence
|
|
|
|
import (
|
|
"mayfly-go/internal/redis/domain/repository"
|
|
"mayfly-go/pkg/ioc"
|
|
)
|
|
|
|
func Init() {
|
|
ioc.Register(newRedisRepo(), ioc.WithComponentName("RedisRepo"))
|
|
}
|
|
|
|
func GetRedisRepo() repository.Redis {
|
|
return ioc.Get[repository.Redis]("RedisRepo")
|
|
}
|