V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
abc0123xyz
V2EX  ›  Java

求教

  •  
  •   abc0123xyz · Mar 24, 2022 · 1372 views
    This topic created in 1507 days ago, the information mentioned may be changed or developed.

    redis 报错

    > 192.168.1.2@6379 connected!
    > scan 0 match test:* count 9223372036854775807
    ERR value is not an integer or out of range
    
    connection.scan(ScanOptions.scanOptions().count(Long.MAX_VALUE).match(pattern).build())
    

    把 Long.MAX_VALUE 换成 Integer 不会报错

    Redis 版本: 3.2.100

    win server


    如果连另一个相同版本的 redis 执行( Long.MAX_VALUE )不会报错

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2985 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:39 · PVG 16:39 · LAX 01:39 · JFK 04:39
    ♥ Do have faith in what you're doing.