gins单例管理增加配置文件监控功能

This commit is contained in:
John
2018-04-21 11:20:31 +08:00
parent 7043b3ebb2
commit 0daaea8919
6 changed files with 30 additions and 9 deletions

View File

@ -8,6 +8,7 @@ import (
func main() {
gins.Config().SetPath("/home/john/Workspace/Go/GOPATH/src/gitee.com/johng/gf/geg/frame")
redis := gins.Redis("cache")
redis.Do("SET", "k", "v")
v, _ := redis.Do("GET", "k")