replServer.clearBufferedCommand()


replServer.clearBufferedCommand() 方法清除任何已缓冲但尚未执行的命令。 此方法主要用于从使用 replServer.defineCommand() 方法注册的命令的操作函数中调用。

The replServer.clearBufferedCommand() method clears any command that has been buffered but not yet executed. This method is primarily intended to be called from within the action function for commands registered using the replServer.defineCommand() method.