蛋蛋星球-制度模式
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.

init.go 301 B

3 weeks ago
1234567891011121314
  1. package egg_system_rules
  2. import (
  3. "code.fnuoos.com/EggPlanet/egg_system_rules.git/md"
  4. "code.fnuoos.com/EggPlanet/egg_system_rules.git/utils/cache"
  5. )
  6. func Init(redisAddr string) (err error) {
  7. if redisAddr != "" {
  8. cache.NewRedis(redisAddr)
  9. }
  10. _, err = cache.SelectDb(md.RedisDataBase)
  11. return
  12. }