作者 yangfu

add redis cache log

正在显示 1 个修改的文件 包含 2 行增加1 行删除
package main
import (
"fmt"
"github.com/astaxie/beego"
"github.com/tiptok/gocomm/config"
"github.com/tiptok/gocomm/pkg/cache"
... ... @@ -25,7 +26,7 @@ func main() {
Level: constant.LOG_LEVEL,
})
cache.InitDefault(cache.WithDefaultRedisPool(redis.GetRedisPool()), cache.WithDebugLog(true, log.DefaultLog))
cache.InitDefault(cache.WithDefaultRedisPool(redis.GetRedisPool()), cache.WithDebugLog(true, log.DefaultLog), cache.WithDeleteChannel(fmt.Sprintf("%v_%v", constant.POSTGRESQL_DB_NAME, "delkey")))
//log.DefaultLog = console.NewConsoleLog(config.Logger{
// Filename: constant.LOG_File,
... ...