瀏覽代碼

redis测试3

abiao 4 年之前
父節點
當前提交
4763af6edb
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      go/gopath/src/fohow.com/apps/controllers/test_controller/test_controller.go

+ 3 - 1
go/gopath/src/fohow.com/apps/controllers/test_controller/test_controller.go

@@ -6,6 +6,7 @@ import (
 	"fohow.com/apps/models/user_model"
 	"fohow.com/libs/lib_redis"
 	"fohow.com/libs/wx_mp"
+	"github.com/astaxie/beego"
 	"math/rand"
 	"strings"
 	"time"
@@ -61,6 +62,7 @@ func (self *TestController) GetUserInfoFromRedis() {
 		lib_redis.SetJsonEx(key, resp, 90*60)
 
 	}
+	beego.BeeLogger.Warn("resp---%v", resp)
 
 	//-------测试数组------------//
 	key_ar := fmt.Sprintf("array_userinfo_a")
@@ -72,7 +74,7 @@ func (self *TestController) GetUserInfoFromRedis() {
 		lib_redis.SetJsonEx(key_ar, resp_ar, 90*60)
 
 	}
-
+	beego.BeeLogger.Warn("resp_ar---%v", resp_ar)
 	type Ret struct {
 		Resp interface{} `json:"resp"`
 	}