蛋蛋星球RabbitMq消费项目
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.
 
 
 
 
 
 

9 regels
206 B

  1. package e
  2. func SetCache(cacheTime int64) map[string]interface{} {
  3. if cacheTime == 0 {
  4. return map[string]interface{}{"cache_time": cacheTime}
  5. }
  6. return map[string]interface{}{"cache_time": cacheTime}
  7. }