diff --git a/scheduling.md b/scheduling.md index a335055b62..d938d24cd0 100644 --- a/scheduling.md +++ b/scheduling.md @@ -362,6 +362,15 @@ Schedule::command('report:generate') ->onOneServer(); ``` +You may use the `useCache` method to customize the cache store used by the scheduler to obtain the atomic locks necessary for single-server tasks: + +```php +Schedule::command('recipes:sync') + ->everyThirtyMinutes() + ->onOneServer(); + ->useCache('database'); +``` + #### Naming Single Server Jobs