From 8fee05edb317dfe3bfa0941be695197bf5e9d322 Mon Sep 17 00:00:00 2001 From: Alexander Cheprasov Date: Sat, 19 Aug 2017 20:16:35 +0100 Subject: [PATCH] v172 --- CHANGELOG.md | 2 +- README.md | 2 +- composer.json | 2 +- src/RedisClient/Client/AbstractRedisClient.php | 2 +- src/RedisClient/ClientFactory.php | 2 ++ 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b04cf7..c356f0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## CHANGELOG -### v1.7.1 (2017-08-19) +### v1.7.2 (2017-08-19) - Fixed bug of ClientFactory with default client version ### v1.7.0 (2017-07-22) diff --git a/README.md b/README.md index 706d85f..38414fd 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT) [![Latest Stable Version](https://poser.pugx.org/cheprasov/php-redis-client/v/stable)](https://packagist.org/packages/cheprasov/php-redis-client) [![Total Downloads](https://poser.pugx.org/cheprasov/php-redis-client/downloads)](https://packagist.org/packages/cheprasov/php-redis-client) -# RedisClient v1.7.1 for PHP >= 5.5 +# RedisClient v1.7.2 for PHP >= 5.5 ## About RedisClient is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from __2.6__ to __4.0__ diff --git a/composer.json b/composer.json index ceecdd9..9aba356 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "cheprasov/php-redis-client", - "version": "1.7.1", + "version": "1.7.2", "description": "Php client for Redis. It is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 4.0", "homepage": "http://github.com/cheprasov/php-redis-client", "minimum-stability": "stable", diff --git a/src/RedisClient/Client/AbstractRedisClient.php b/src/RedisClient/Client/AbstractRedisClient.php index 30728ea..1da3c09 100644 --- a/src/RedisClient/Client/AbstractRedisClient.php +++ b/src/RedisClient/Client/AbstractRedisClient.php @@ -26,7 +26,7 @@ abstract class AbstractRedisClient { - const VERSION = '1.7.1'; + const VERSION = '1.7.2'; const CONFIG_SERVER = 'server'; const CONFIG_TIMEOUT = 'timeout'; diff --git a/src/RedisClient/ClientFactory.php b/src/RedisClient/ClientFactory.php index 5ccde95..fa05730 100644 --- a/src/RedisClient/ClientFactory.php +++ b/src/RedisClient/ClientFactory.php @@ -104,6 +104,8 @@ public static function createClientByVersion($version, $config = null) { if (self::setDefaultRedisVersion($v)) { return new RedisClient($config); } + } elseif (self::$defaultRedisVersion == $v) { + return new RedisClient($config); } break; }