修复长期session bug

This commit is contained in:
hoteas
2018-04-10 18:53:16 +00:00
parent 8dc2685fa3
commit 5cbef50464
2 changed files with 56 additions and 48 deletions
+2 -2
View File
@@ -12,10 +12,10 @@ type SessionIns struct {
func (this *SessionIns) set() {
if this.ShortCache != nil {
this.ShortCache.Cache(this.SessionId, this.Map)
this.ShortCache.Cache(HEAD_SESSION_ADD + this.SessionId, this.Map)
}
if this.LongCache != nil {
this.LongCache.Cache(this.SessionId, this.Map)
this.LongCache.Cache(HEAD_SESSION_ADD + this.SessionId, this.Map)
}
}