mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 03:20:57 +00:00
Update README.md
Update the json format of session for redis, there is an error in that json string
This commit is contained in:
parent
e307bd7ba9
commit
8164f9821d
@ -42,7 +42,7 @@ Then in you web app init the global session manager
|
||||
* Use **Redis** as provider, the last param is the Redis conn address,poolsize,password:
|
||||
|
||||
func init() {
|
||||
globalSessions, _ = session.NewManager("redis", `{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig","127.0.0.1:6379,100,astaxie"}`)
|
||||
globalSessions, _ = session.NewManager("redis", `{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"127.0.0.1:6379,100,astaxie"}`)
|
||||
go globalSessions.GC()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user