How can i use two redis Client in one handdler?
melonwool opened this issue · comments
How to do it? The Map() function just map one *redis.Client
app.Group("/detail", func(r martini.Router) {
r.Get("", binding.Form(controllers.DetailForm{}), controllers.Detail)
})
No, you can't, but you can make something like:
type RedisClients struct {
Foo *redis.Client
Bar *redis.Client
}
and then map an instance of that type instead
Thank you, is't useful!