refactor(common): 重构缓存管理模块,将cache迁移至share包并实现泛型缓存存储

This commit is contained in:
575560454
2025-07-15 18:10:25 +00:00
parent 38ec291275
commit b647c74808
6 changed files with 43 additions and 42 deletions

View File

@@ -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
}