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

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

  •  
  •   reid2017 · Aug 9, 2018 · 5006 views
    This topic created in 2845 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   ·   2670 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 10:55 · PVG 18:55 · LAX 03:55 · JFK 06:55
    ♥ Do have faith in what you're doing.