mirror of
https://gitee.com/johng/gf
synced 2026-07-04 21:03:13 +08:00
gins单例管理增加配置文件监控功能
This commit is contained in:
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user