Pre Merge pull request !331 from wudp/dev

This commit is contained in:
wudp 2025-05-03 05:14:35 +00:00 committed by Gitee
commit c1c5cc9211
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -62,6 +62,18 @@ public class SaTokenDaoForRedisTemplateUseJdkSerializer extends SaTokenDaoForRed
return objectRedisTemplate.opsForValue().get(key);
}
/**
* 获取 Object (指定反序列化类型)如无返空
*
* @param key 键名称
* @return object
*/
@SuppressWarnings("unchecked")
@Override
public <T> T getObject(String key, Class<T> classType) {
return (T) objectRedisTemplate.opsForValue().get(key);
}
/**
* 写入Object并设定存活时间 (单位: )
*/