refactor(common): 重构缓存管理模块,将cache迁移至share包并实现泛型缓存存储
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package login
|
||||
|
||||
import (
|
||||
"blazing/common/data/cache"
|
||||
"blazing/common/data/share"
|
||||
"blazing/common/socket/handler"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
@@ -21,7 +21,7 @@ func (l *LoginSidInfo) CheakSession() bool {
|
||||
//g.Dump(tt)
|
||||
t1 := hex.EncodeToString(l.Sid)
|
||||
|
||||
t, err := cache.NewSessionManager().GetSession(t1)
|
||||
t, err := share.ShareManager.GetSession(t1)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user