move redis code to package hotime
This commit is contained in:
parent
2632517fab
commit
77ded19742
@ -1,7 +1,6 @@
|
|||||||
package cache
|
package hotime
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "../../hotime"
|
|
||||||
"github.com/garyburd/redigo/redis"
|
"github.com/garyburd/redigo/redis"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
@ -24,7 +24,7 @@ func main() {
|
|||||||
//手动模式,
|
//手动模式,
|
||||||
appIns.SetConfig("example/config/config.json")
|
appIns.SetConfig("example/config/config.json")
|
||||||
//redis缓存接入
|
//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("xyzm","dasdas")
|
||||||
//ca.Cache("xyzn","dasdas")
|
//ca.Cache("xyzn","dasdas")
|
||||||
//ca.Cache("xyzo","dasdas")
|
//ca.Cache("xyzo","dasdas")
|
||||||
|
Loading…
Reference in New Issue
Block a user