package svc import ( "applet/app/utils/cache" "fmt" "github.com/gin-gonic/gin" ) func ClearRedis(c *gin.Context, key string) { key1 := fmt.Sprintf("%s:cfg_cache:%s", c.GetString("mid"), key) cache.Del(key1) }