优化 solon 相关的 SaTokenDaoOfRedisJson 序列化处理

This commit is contained in:
noear
2024-05-11 17:39:58 +08:00
parent 4be4ee54c2
commit 1a62c391ea
3 changed files with 6 additions and 22 deletions

View File

@@ -48,16 +48,6 @@ public class SaTokenDaoOfRedisJson implements SaTokenDao {
}
@Override
public SaSession getSession(String sessionId) {
Object obj = getObject(sessionId);
if (obj == null) {
return null;
}
return ONode.deserialize(obj.toString(), SaSessionForJson.class);
}
/**
* 获取Value如无返空
*/
@@ -117,7 +107,8 @@ public class SaTokenDaoOfRedisJson implements SaTokenDao {
*/
@Override
public Object getObject(String key) {
return get(key);
String value = get(key);
return ONode.deserialize(value);
}
/**