redis ERR value is not an integer or out of range
程序员文章站
2022-05-07 23:15:52
...
$fee = 0.01;
$redis->incrby('num',$fee);
//ERR value is not an integer or out of range incrby不能用浮点数,除了*100转换还有办法吗?
回复内容:
$fee = 0.01;
$redis->incrby('num',$fee);
//ERR value is not an integer or out of range incrby不能用浮点数,除了*100转换还有办法吗?
不是很清楚了吗.第二个参数要是int类型的