redis存取复杂Object对象的类型转换

一时失言乱红尘 2022-12-20 01:26 326阅读 0赞

set

redisUtil.set(cache_key, JSON.toJSONString(user), 30*3);

get

User user= JSON.parseObject((String)redisUtil.get(cache_key),User.class);

发表评论

表情:
评论列表 (有 0 条评论,326人围观)

还没有评论,来说两句吧...

相关阅读