Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aa81a05

Browse files
Fix withHeartbeat example (#10790)
1 parent 8f8cc25 commit aa81a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4338,7 +4338,7 @@ The `withHeartbeat` method allows you to execute a callback at regular time inte
43384338
use Carbon\CarbonInterval;
43394339
use Illuminate\Support\Facades\Cache;
43404340

4341-
$lock = Cache::lock('generate-reports', CarbonInterval::minutes(5));
4341+
$lock = Cache::lock('generate-reports', seconds: 60 * 5);
43424342

43434343
if ($lock->get()) {
43444344
try {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /