From 8164f9821d26d9286af3a63f03348e69446594c0 Mon Sep 17 00:00:00 2001 From: luosangnanka Date: Mon, 5 May 2014 16:13:03 +0800 Subject: [PATCH] Update README.md Update the json format of session for redis, there is an error in that json string --- session/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session/README.md b/session/README.md index 2ebf069a..1956738d 100644 --- a/session/README.md +++ b/session/README.md @@ -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() }