Skip to content

Commit

Permalink
Merge pull request #3 from cheprasov/fix-catch-exception
Browse files Browse the repository at this point in the history
Fix catch exception
  • Loading branch information
cheprasov authored Aug 19, 2017
2 parents bd4422b + 5293aa8 commit df365b1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Latest Stable Version](https://poser.pugx.org/cheprasov/php-redis-lock/v/stable)](https://packagist.org/packages/cheprasov/php-redis-lock)
[![Total Downloads](https://poser.pugx.org/cheprasov/php-redis-lock/downloads)](https://packagist.org/packages/cheprasov/php-redis-lock)

# RedisLock v1.0.0 for PHP >= 5.5
# RedisLock v1.0.1 for PHP >= 5.5

## About
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/).
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cheprasov/php-redis-lock",
"version": "1.0.0",
"version": "1.0.1",
"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.",
"homepage": "http://github.com/cheprasov/php-redis-lock",
"minimum-stability": "stable",
Expand All @@ -16,10 +16,10 @@
},
"require": {
"php": ">=5.5",
"cheprasov/php-redis-client" : "~1.4"
"cheprasov/php-redis-client" : "^1.7.2"
},
"require-dev": {
"phpunit/phpunit": "4.8.*",
"cheprasov/php-parallel": "~1.0"
"cheprasov/php-parallel": "~1.2"
}
}
2 changes: 1 addition & 1 deletion src/RedisLock/RedisLock.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class RedisLock implements LockInterface {

const VERSION = '1.0.0';
const VERSION = '1.0.1';

/**
* Catch Lock exceptions and return false or null as result
Expand Down
3 changes: 2 additions & 1 deletion test/Integration/RedisLockParallelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class RedisLockParallelTest extends \PHPUnit_Framework_TestCase {

protected function getRedis() {
return ClientFactory::create([
'server' => REDIS_TEST_SERVER
'server' => REDIS_TEST_SERVER,
'version' => '3.2.8',
]);
}

Expand Down
6 changes: 3 additions & 3 deletions test/Integration/RedisLockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class RedisLockTest extends \PHPUnit_Framework_TestCase {

const TEST_KEY = 'redisLockTestKey';

const LOCK_MIN_TIME = 0.05
;
const LOCK_MIN_TIME = 0.05;

/**
* @var RedisClient
Expand All @@ -32,7 +31,8 @@ class RedisLockTest extends \PHPUnit_Framework_TestCase {

public static function setUpBeforeClass() {
static::$Redis = ClientFactory::create([
'server' => REDIS_TEST_SERVER
'server' => REDIS_TEST_SERVER,
'version' => '3.2.8',
]);
}

Expand Down

0 comments on commit df365b1

Please sign in to comment.