正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| 1 | package main | 1 | package main |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | + "fmt" | ||
| 4 | "github.com/astaxie/beego" | 5 | "github.com/astaxie/beego" |
| 5 | "github.com/tiptok/gocomm/config" | 6 | "github.com/tiptok/gocomm/config" |
| 6 | "github.com/tiptok/gocomm/pkg/cache" | 7 | "github.com/tiptok/gocomm/pkg/cache" |
| @@ -25,7 +26,7 @@ func main() { | @@ -25,7 +26,7 @@ func main() { | ||
| 25 | Level: constant.LOG_LEVEL, | 26 | Level: constant.LOG_LEVEL, |
| 26 | }) | 27 | }) |
| 27 | 28 | ||
| 28 | - cache.InitDefault(cache.WithDefaultRedisPool(redis.GetRedisPool()), cache.WithDebugLog(true, log.DefaultLog)) | 29 | + cache.InitDefault(cache.WithDefaultRedisPool(redis.GetRedisPool()), cache.WithDebugLog(true, log.DefaultLog), cache.WithDeleteChannel(fmt.Sprintf("%v_%v", constant.POSTGRESQL_DB_NAME, "delkey"))) |
| 29 | 30 | ||
| 30 | //log.DefaultLog = console.NewConsoleLog(config.Logger{ | 31 | //log.DefaultLog = console.NewConsoleLog(config.Logger{ |
| 31 | // Filename: constant.LOG_File, | 32 | // Filename: constant.LOG_File, |
-
请 注册 或 登录 后发表评论