abc0123xyz
V2EX  ›  Java

求教

  •  
  •   abc0123xyz · Mar 24, 2022 · 1587 views
    This topic created in 1619 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   ·   Privacy   ·   Solana   ·   963 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 19:44 · PVG 03:44 · LAX 12:44 · JFK 15:44
    ♥ Do have faith in what you're doing.