Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions scheduling.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
```

<a name="naming-unique-jobs"></a>
#### Naming Single Server Jobs

Expand Down