Redis增量命令如何对溢出做出反应?

How do redis increment commands react to overflow?

在redis整数递增命令中,更具体地说:

INCR / INCRBY
HINCRBY

递增 1 超过最大值(即 64 位带符号范围)时的行为是什么?

说增量会溢出会报错:

127.0.0.1:6379> set foo 9223372036854775807
OK
127.0.0.1:6379> incr foo
(error) ERR increment or decrement would overflow