Skip to content

Commit

Permalink
Removed duplicated prefix when use dynamodb cache lock (#52986)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
felipehertzer authored Sep 30, 2024
1 parent e0cf931 commit 87932fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/DynamoDbStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public function forever($key, $value)
*/
public function lock($name, $seconds = 0, $owner = null)
{
return new DynamoDbLock($this, $this->prefix.$name, $seconds, $owner);
return new DynamoDbLock($this, $name, $seconds, $owner);
}

/**
Expand Down

0 comments on commit 87932fb

Please sign in to comment.