From 8e6c46592b376f9e5f6f53a77615bbf0083008e7 Mon Sep 17 00:00:00 2001 From: Alexander Cheprasov Date: Wed, 18 May 2016 19:57:06 +0100 Subject: [PATCH 1/2] v1.3.1 --- CHANGELOG.md | 3 +++ README.md | 4 ++-- composer.json | 2 +- examples/create_new_instance.php | 8 ++++---- src/RedisClient/Client/AbstractRedisClient.php | 2 +- src/RedisClient/ClientFactory.php | 3 +-- src/RedisClient/Pipeline/Pipeline.php | 2 +- src/RedisClient/RedisClient.php | 2 +- 8 files changed, 14 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c82a4b0..73564f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## CHANGELOG +### v1.3.1 (2016-05-18) +- By default, the client works with the latest stable version of Redis (3.2.0). + ### v1.3.0 (2016-05-07) - Client was tested with Redis 3.2.0 (stable) - Added command **BITFIELD** for Redis >= 3.2. diff --git a/README.md b/README.md index 946ccbd..3b18d3d 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.3.0 for PHP >= 5.5 +# RedisClient v1.3.1 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 __3.2__ @@ -14,7 +14,7 @@ RedisClient is a fast, fully-functional and user-friendly client for Redis, opti - Support __RAW__ commands as strings `"SET foo bar"` or as arrays `['SET', 'foo', 'bar']`. - Connections to Redis are established lazily by the client upon the first command. - Easy to use with IDE, client has PHPDocs for all supported versions. -- By default, the client works with the latest stable version of Redis. +- By default, the client works with the latest stable version of Redis (3.2.0). - About **6.5-8.5% faster** than predis (based on this test: https://github.com/cheprasov/php-redis-client-vs-predis-test) ## Usage diff --git a/composer.json b/composer.json index b4c12c6..64b911d 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "cheprasov/php-redis-client", - "version": "1.3.0", + "version": "1.3.1", "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 3.2.0", "homepage": "http://github.com/cheprasov/php-redis-client", "minimum-stability": "stable", diff --git a/examples/create_new_instance.php b/examples/create_new_instance.php index b4c0fd8..11381fc 100644 --- a/examples/create_new_instance.php +++ b/examples/create_new_instance.php @@ -29,7 +29,7 @@ echo 'RedisClient: '. $Redis->getSupportedVersion() . PHP_EOL; echo 'Redis: '. $Redis->info('Server')['redis_version'] . PHP_EOL; -// RedisClient: 3.0 +// RedisClient: 3.2 // Redis: 3.0.3 @@ -37,14 +37,14 @@ // By default, the client works with the latest stable version of Redis. $Redis = new RedisClient([ - 'server' => 'tcp://127.0.0.1:6379', // or 'unix:///tmp/redis.sock' + 'server' => 'tcp://127.0.0.1:6387', // or 'unix:///tmp/redis.sock' 'timeout' => 2 ]); echo 'RedisClient: '. $Redis->getSupportedVersion() . PHP_EOL; echo 'Redis: '. $Redis->info('Server')['redis_version'] . PHP_EOL; -// RedisClient: 3.0 -// Redis: 3.0.3 +// RedisClient: 3.2 +// Redis: 3.2.0 // Example 3. Create new Instance for Redis version 2.6.x with config diff --git a/src/RedisClient/Client/AbstractRedisClient.php b/src/RedisClient/Client/AbstractRedisClient.php index 4269170..6a020b7 100644 --- a/src/RedisClient/Client/AbstractRedisClient.php +++ b/src/RedisClient/Client/AbstractRedisClient.php @@ -20,7 +20,7 @@ abstract class AbstractRedisClient { - const VERSION = '1.3.0'; + const VERSION = '1.3.1'; const CONFIG_SERVER = 'server'; const CONFIG_TIMEOUT = 'timeout'; diff --git a/src/RedisClient/ClientFactory.php b/src/RedisClient/ClientFactory.php index 711a1ac..8b7d78a 100644 --- a/src/RedisClient/ClientFactory.php +++ b/src/RedisClient/ClientFactory.php @@ -10,7 +10,6 @@ */ namespace RedisClient; -use RedisClient\Client\AbstractRedisClient; use RedisClient\Client\Version\RedisClient2x6; use RedisClient\Client\Version\RedisClient2x8; use RedisClient\Client\Version\RedisClient3x0; @@ -54,7 +53,7 @@ public static function createClientByVersion($version, $config = null) { } if (empty($class)) { throw new \InvalidArgumentException( - 'RedisClient does not support Redis version '.$version.'. Please, use version ' .end($versions) + 'RedisClient does not support Redis version '.$version.'. Please, use version '. end($versions) ); } return new $class($config); diff --git a/src/RedisClient/Pipeline/Pipeline.php b/src/RedisClient/Pipeline/Pipeline.php index bdca9c6..02e0442 100644 --- a/src/RedisClient/Pipeline/Pipeline.php +++ b/src/RedisClient/Pipeline/Pipeline.php @@ -10,7 +10,7 @@ */ namespace RedisClient\Pipeline; -use RedisClient\Pipeline\Version\Pipeline3x0 as PipelineLastStableVersion; +use RedisClient\Pipeline\Version\Pipeline3x2 as PipelineLastStableVersion; /** * @inheritdoc diff --git a/src/RedisClient/RedisClient.php b/src/RedisClient/RedisClient.php index d62a46d..b89a8a0 100644 --- a/src/RedisClient/RedisClient.php +++ b/src/RedisClient/RedisClient.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ namespace RedisClient; -use RedisClient\Client\Version\RedisClient3x0 as RedisClientLastStableVersion; +use RedisClient\Client\Version\RedisClient3x2 as RedisClientLastStableVersion; use RedisClient\Pipeline\Pipeline; use RedisClient\Pipeline\PipelineInterface; From 63beec3b10ce8ba20fa58c4e735314f3e93cd11b Mon Sep 17 00:00:00 2001 From: Alexander Cheprasov Date: Wed, 18 May 2016 19:59:50 +0100 Subject: [PATCH 2/2] v1.3.1 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b18d3d..c21da8f 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ echo 'RedisClient: '. $Redis->getSupportedVersion() . PHP_EOL; echo 'Redis: '. $Redis->info('Server')['redis_version'] . PHP_EOL; // By default, the client works with the latest stable version of Redis. -// RedisClient: 3.0 +// RedisClient: 3.2 // Redis: 3.0.3