This commit is contained in:
astaxie
2013-11-02 00:16:10 +08:00
parent bc862e526d
commit d835b0c80f
5 changed files with 54 additions and 0 deletions

View File

@@ -142,6 +142,10 @@ func (pder *MemProvider) SessionGC() {
pder.lock.RUnlock()
}
func (pder *MemProvider) SessionAll() int {
return pder.list.Len()
}
func (pder *MemProvider) SessionUpdate(sid string) error {
pder.lock.Lock()
defer pder.lock.Unlock()