1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-10 12:30:17 +00:00

fix #241#192

This commit is contained in:
astaxie
2013-10-28 22:19:37 +08:00
parent 57165f2fb5
commit 060631e952
2 changed files with 45 additions and 43 deletions

View File

@ -39,10 +39,10 @@ Then in you web app init the global session manager
go globalSessions.GC()
}
* Use **Redis** as provider, the last param is the Redis conn address:
* Use **Redis** as provider, the last param is the Redis conn address,poolsize,password:
func init() {
globalSessions, _ = session.NewManager("redis", "gosessionid", 3600, "127.0.0.1:6379")
globalSessions, _ = session.NewManager("redis", "gosessionid", 3600, "127.0.0.1:6379,100,astaxie")
go globalSessions.GC()
}