You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
320 B
22 lines
320 B
package dede |
|
|
|
import ( |
|
"go-common/app/service/main/videoup/conf" |
|
"go-common/library/cache/redis" |
|
) |
|
|
|
// Dao is redis dao. |
|
type Dao struct { |
|
c *conf.Config |
|
// redis |
|
redis *redis.Pool |
|
} |
|
|
|
// New new |
|
func New(c *conf.Config) (d *Dao) { |
|
d = &Dao{ |
|
c: c, |
|
redis: redis.NewPool(c.Redis.Track.Config), |
|
} |
|
return d |
|
}
|
|
|