move redis code to package hotime

This commit is contained in:
hoteas 2021-05-24 06:16:32 +08:00
parent 2632517fab
commit 77ded19742
2 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,6 @@
package cache
package hotime
import (
. "../../hotime"
"github.com/garyburd/redigo/redis"
"strings"
"time"

View File

@ -24,7 +24,7 @@ func main() {
//手动模式,
appIns.SetConfig("example/config/config.json")
//redis缓存接入
//ca:=hotime.CacheIns(&cache.CacheRedis{Host:appIns.Config.GetString("redisHost"),Pwd:appIns.Config.GetString("redisPwd"),Time:appIns.Config.GetCeilInt64("cacheLongTime")})
//ca:=hotime.CacheIns(&hotime.CacheRedis{Host:appIns.Config.GetString("redisHost"),Pwd:appIns.Config.GetString("redisPwd"),Time:appIns.Config.GetCeilInt64("cacheLongTime")})
//ca.Cache("xyzm","dasdas")
//ca.Cache("xyzn","dasdas")
//ca.Cache("xyzo","dasdas")