redis使用Jackson2JsonRedisSerializer序列化问题
https://blog.csdn.net/weixin_33881041/article/details/91472219
解决方法
https://blog.csdn.net/qq_31445987/article/details/82260899
ZSetOperations zSetOperations = redisTemplate.opsForZSet();
Set<Object> idsSet = zSetOperations.reverseRange("xxxxx", 0L, -1L);
List<Long> ids = new ArrayList<>();
idsSet.forEach(e -> ids.add(e instanceof Integer ? ((Integer) e).longValue() : (Long) e));