diff --git a/src/commands/cmd_list.cc b/src/commands/cmd_list.cc index a296a872981..f4ccba353e9 100644 --- a/src/commands/cmd_list.cc +++ b/src/commands/cmd_list.cc @@ -551,19 +551,22 @@ class CommandLMove : public Commander { bool dst_left_; }; -REDIS_REGISTER_COMMANDS( - MakeCmdAttr("lpush", -3, "write", 1, 1, 1), MakeCmdAttr("rpush", -3, "write", 1, 1, 1), - MakeCmdAttr("lpushx", -3, "write", 1, 1, 1), - MakeCmdAttr("rpushx", -3, "write", 1, 1, 1), MakeCmdAttr("lpop", -2, "write", 1, 1, 1), - MakeCmdAttr("rpop", -2, "write", 1, 1, 1), - MakeCmdAttr("blpop", -3, "write no-script", 1, -2, 1), - MakeCmdAttr("brpop", -3, "write no-script", 1, -2, 1), - MakeCmdAttr("lrem", 4, "write", 1, 1, 1), MakeCmdAttr("linsert", 5, "write", 1, 1, 1), - MakeCmdAttr("lrange", 4, "read-only", 1, 1, 1), - MakeCmdAttr("lindex", 3, "read-only", 1, 1, 1), - MakeCmdAttr("ltrim", 4, "write", 1, 1, 1), MakeCmdAttr("llen", 2, "read-only", 1, 1, 1), - MakeCmdAttr("lset", 4, "write", 1, 1, 1), - MakeCmdAttr("rpoplpush", 3, "write", 1, 2, 1), - MakeCmdAttr("lmove", 5, "write", 1, 2, 1), ) +REDIS_REGISTER_COMMANDS(MakeCmdAttr("blpop", -3, "write no-script", 1, -2, 1), + MakeCmdAttr("brpop", -3, "write no-script", 1, -2, 1), + MakeCmdAttr("lindex", 3, "read-only", 1, 1, 1), + MakeCmdAttr("linsert", 5, "write", 1, 1, 1), + MakeCmdAttr("llen", 2, "read-only", 1, 1, 1), + MakeCmdAttr("lmove", 5, "write", 1, 2, 1), + MakeCmdAttr("lpop", -2, "write", 1, 1, 1), // + MakeCmdAttr("lpush", -3, "write", 1, 1, 1), + MakeCmdAttr("lpushx", -3, "write", 1, 1, 1), + MakeCmdAttr("lrange", 4, "read-only", 1, 1, 1), + MakeCmdAttr("lrem", 4, "write", 1, 1, 1), + MakeCmdAttr("lset", 4, "write", 1, 1, 1), + MakeCmdAttr("ltrim", 4, "write", 1, 1, 1), + MakeCmdAttr("rpop", -2, "write", 1, 1, 1), + MakeCmdAttr("rpoplpush", 3, "write", 1, 2, 1), + MakeCmdAttr("rpush", -3, "write", 1, 1, 1), + MakeCmdAttr("rpushx", -3, "write", 1, 1, 1), ) } // namespace redis