abc0123xyz
V2EX  ›  Java

求教

  •  
  •   abc0123xyz · Mar 24, 2022 · 1425 views
    This topic created in 1536 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   ·   4600 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 04:07 · PVG 12:07 · LAX 21:07 · JFK 00:07
    ♥ Do have faith in what you're doing.