|
|
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,
|
...
|
...
|
|