• 请不要在回答技术问题时复制粘贴 AI 生成的内容
reid2017
V2EX  ›  程序员

redisTemplate.opsForZSet().reverseRange 返回值类型问题

  •  
  •   reid2017 · Aug 9, 2018 · 5014 views
    This topic created in 2848 days ago, the information mentioned may be changed or developed.
    Set<Long> tops = redisTemplate.opsForZSet().reverseRange(key, 0, -1);

    代码如上,我在 redis 里有一个 zset,里面存了些数字,执行上面的方法,返回值类型变成了 Set<Integer>,有朋友遇到过吗?如何解决?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3758 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 00:44 · PVG 08:44 · LAX 17:44 · JFK 20:44
    ♥ Do have faith in what you're doing.