Skip to content

Commit e917c4c

Browse files
committed
Rename cache lock key
1 parent ad7ecec commit e917c4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Cache/Repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ public function flexible($key, $ttl, $callback, $lock = null)
504504

505505
$refresh = function () use ($key, $ttl, $callback, $lock, $created) {
506506
$this->store->lock(
507-
"illuminate:cache:refresh:lock:{$key}",
507+
"illuminate:cache:flexible:lock:{$key}",
508508
$lock['seconds'] ?? 0,
509509
$lock['owner'] ?? null,
510510
)->get(function () use ($key, $callback, $created, $ttl) {

tests/Integration/Cache/RepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function testStaleWhileRevalidate(): void
105105
// our own lock. This means that the value should not be refreshed by
106106
// deferred callback.
107107
/** @var Lock */
108-
$lock = $cache->lock('illuminate:cache:refresh:lock:foo');
108+
$lock = $cache->lock('illuminate:cache:flexible:lock:foo');
109109

110110
$this->assertTrue($lock->acquire());
111111
defer()->first()();

0 commit comments

Comments
 (0)