一、问题展示
redis.exceptions,ResponseError: wrong number of arguments for ' pop' command
二、原因说明
redis6.2以下都不支持rightPop(key, count)和leftPop(key, count)语法;只支持单条取的rightPop(key)和leftPop(key)
使用redis-server -v 可以查看到ubuntu系统redis的版本号
我的版本是4.0.9的,因此不可以这样使用