Skip to content

Commit ed397ce

Browse files
committed
Merge branch 'master' into v103
# Conflicts: # README.md # composer.json # src/RedisLock/RedisLock.php
2 parents c2f5201 + 7cfe7d1 commit ed397ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
function updateJsonInRedis(RedisClient $Redis, $key, array $array) {
2323
// Create new Lock instance
24-
$Lock = new RedisLock($Redis, 'Lock_'.$key, RedisLock::FLAG_CATCH_EXCEPTIONS);
24+
$Lock = new RedisLock($Redis, 'Lock_'.$key, RedisLock::FLAG_DO_NOT_THROW_EXCEPTIONS);
2525

2626
// Acquire lock for 2 sec.
2727
// If lock has acquired in another thread then we will wait 3 second,

0 commit comments

Comments
 (0)