xframe/component/queue/asynq/internal/maker/maker.go

16 lines
270 B
Go
Raw Normal View History

2024-10-12 12:55:20 +08:00
package maker
import "git.wishpal.cn/wishpal_ironfan/xframe/component/storage/redis"
type maker struct {
rdb *redis.Redis
}
func NewMaker(rdb *redis.Redis) *maker {
return &maker{rdb: rdb}
}
func (m maker) MakeRedisClient() interface{} {
return m.rdb.RedisNode
}