We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2f5201 + 7cfe7d1 commit ed397ceCopy full SHA for ed397ce
example.php
@@ -21,7 +21,7 @@
21
*/
22
function updateJsonInRedis(RedisClient $Redis, $key, array $array) {
23
// Create new Lock instance
24
- $Lock = new RedisLock($Redis, 'Lock_'.$key, RedisLock::FLAG_CATCH_EXCEPTIONS);
+ $Lock = new RedisLock($Redis, 'Lock_'.$key, RedisLock::FLAG_DO_NOT_THROW_EXCEPTIONS);
25
26
// Acquire lock for 2 sec.
27
// If lock has acquired in another thread then we will wait 3 second,
0 commit comments