Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

教程:多版本 API

大多数项目开始时都有一个不断变化的 alpha API。然而,最终,大多数项目需要转向一个更稳定的 API。然而,一旦你的 API 稳定后,你就不能对其进行破坏性更改。这就是 API 版本派上用场的地方。

对 CronJob API spec 做一些更改,并确保 CronJob 项目支持所有不同版本。

如果您还没有,请确保您已经阅读过基础的 CronJob 教程。

接下来,让我们找出我们想要进行哪些更改…