Skip to content

Commit 87932fb

Browse files
Removed duplicated prefix when use dynamodb cache lock (#52986)
Close #52954 This PR remove the duplicated prefix when use DynamoDB as cache drive and try to lock DynamoDB Key now: laravel_cache_laravel_cache_my-lock DynamoDB Key after: laravel_cache_my-lock
1 parent e0cf931 commit 87932fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Cache/DynamoDbStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ public function forever($key, $value)
412412
*/
413413
public function lock($name, $seconds = 0, $owner = null)
414414
{
415-
return new DynamoDbLock($this, $this->prefix.$name, $seconds, $owner);
415+
return new DynamoDbLock($this, $name, $seconds, $owner);
416416
}
417417

418418
/**

0 commit comments

Comments
 (0)