Skip to content

Commit df365b1

Browse files
authored
Merge pull request #3 from cheprasov/fix-catch-exception
Fix catch exception
2 parents bd4422b + 5293aa8 commit df365b1

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![Latest Stable Version](https://poser.pugx.org/cheprasov/php-redis-lock/v/stable)](https://packagist.org/packages/cheprasov/php-redis-lock)
33
[![Total Downloads](https://poser.pugx.org/cheprasov/php-redis-lock/downloads)](https://packagist.org/packages/cheprasov/php-redis-lock)
44

5-
# RedisLock v1.0.0 for PHP >= 5.5
5+
# RedisLock v1.0.1 for PHP >= 5.5
66

77
## About
88
RedisLock for PHP is a synchronization mechanism for enforcing limits on access to a resource in an environment where there are many threads of execution. A lock is designed to enforce a mutual exclusion concurrency control policy. Based on [redis](http://redis.io/).

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cheprasov/php-redis-lock",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "RedisLock for PHP is a synchronization mechanism for enforcing limits on access to a resource in an environment where there are many threads of execution. A lock is designed to enforce a mutual exclusion concurrency control policy.",
55
"homepage": "http://github.com/cheprasov/php-redis-lock",
66
"minimum-stability": "stable",
@@ -16,10 +16,10 @@
1616
},
1717
"require": {
1818
"php": ">=5.5",
19-
"cheprasov/php-redis-client" : "~1.4"
19+
"cheprasov/php-redis-client" : "^1.7.2"
2020
},
2121
"require-dev": {
2222
"phpunit/phpunit": "4.8.*",
23-
"cheprasov/php-parallel": "~1.0"
23+
"cheprasov/php-parallel": "~1.2"
2424
}
2525
}

src/RedisLock/RedisLock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class RedisLock implements LockInterface {
2121

22-
const VERSION = '1.0.0';
22+
const VERSION = '1.0.1';
2323

2424
/**
2525
* Catch Lock exceptions and return false or null as result

test/Integration/RedisLockParallelTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class RedisLockParallelTest extends \PHPUnit_Framework_TestCase {
2424

2525
protected function getRedis() {
2626
return ClientFactory::create([
27-
'server' => REDIS_TEST_SERVER
27+
'server' => REDIS_TEST_SERVER,
28+
'version' => '3.2.8',
2829
]);
2930
}
3031

test/Integration/RedisLockTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ class RedisLockTest extends \PHPUnit_Framework_TestCase {
2222

2323
const TEST_KEY = 'redisLockTestKey';
2424

25-
const LOCK_MIN_TIME = 0.05
26-
;
25+
const LOCK_MIN_TIME = 0.05;
2726

2827
/**
2928
* @var RedisClient
@@ -32,7 +31,8 @@ class RedisLockTest extends \PHPUnit_Framework_TestCase {
3231

3332
public static function setUpBeforeClass() {
3433
static::$Redis = ClientFactory::create([
35-
'server' => REDIS_TEST_SERVER
34+
'server' => REDIS_TEST_SERVER,
35+
'version' => '3.2.8',
3636
]);
3737
}
3838

0 commit comments

Comments
 (0)