Skip to content

Commit 4b881cf

Browse files
fix: optimize lock timeout (#57966)
1 parent a925110 commit 4b881cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Cache/Console/stubs/cache.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ return new class extends Migration
1414
Schema::create('cache', function (Blueprint $table) {
1515
$table->string('key')->primary();
1616
$table->mediumText('value');
17-
$table->integer('expiration');
17+
$table->integer('expiration')->index();
1818
});
1919

2020
Schema::create('cache_locks', function (Blueprint $table) {
2121
$table->string('key')->primary();
2222
$table->string('owner');
23-
$table->integer('expiration');
23+
$table->integer('expiration')->index();
2424
});
2525
}
2626

0 commit comments

Comments
 (0)