Skip to content

Commit 3a662c0

Browse files
committed
Dev v1.3.1 (#41)
* v1.3.1
1 parent b82b3c5 commit 3a662c0

File tree

8 files changed

+15
-13
lines changed

8 files changed

+15
-13
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## CHANGELOG
22

3+
### v1.3.1 (2016-05-18)
4+
- By default, the client works with the latest stable version of Redis (3.2.0).
5+
36
### v1.3.0 (2016-05-07)
47
- Client was tested with Redis 3.2.0 (stable)
58
- Added command **BITFIELD** for Redis >= 3.2.

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
22
[![Latest Stable Version](https://poser.pugx.org/cheprasov/php-redis-client/v/stable)](https://packagist.org/packages/cheprasov/php-redis-client)
33
[![Total Downloads](https://poser.pugx.org/cheprasov/php-redis-client/downloads)](https://packagist.org/packages/cheprasov/php-redis-client)
4-
# RedisClient v1.3.0 for PHP >= 5.5
4+
# RedisClient v1.3.1 for PHP >= 5.5
55

66
## About
77
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
1414
- Support __RAW__ commands as strings `"SET foo bar"` or as arrays `['SET', 'foo', 'bar']`.
1515
- Connections to Redis are established lazily by the client upon the first command.
1616
- Easy to use with IDE, client has PHPDocs for all supported versions.
17-
- By default, the client works with the latest stable version of Redis.
17+
- By default, the client works with the latest stable version of Redis (3.2.0).
1818
- About **6.5-8.5% faster** than predis (based on this test: https://github.com/cheprasov/php-redis-client-vs-predis-test)
1919

2020
## Usage
@@ -62,7 +62,7 @@ echo 'RedisClient: '. $Redis->getSupportedVersion() . PHP_EOL;
6262
echo 'Redis: '. $Redis->info('Server')['redis_version'] . PHP_EOL;
6363

6464
// By default, the client works with the latest stable version of Redis.
65-
// RedisClient: 3.0
65+
// RedisClient: 3.2
6666
// Redis: 3.0.3
6767

6868

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cheprasov/php-redis-client",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"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",
55
"homepage": "http://github.com/cheprasov/php-redis-client",
66
"minimum-stability": "stable",

examples/create_new_instance.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@
2929
echo 'RedisClient: '. $Redis->getSupportedVersion() . PHP_EOL;
3030
echo 'Redis: '. $Redis->info('Server')['redis_version'] . PHP_EOL;
3131

32-
// RedisClient: 3.0
32+
// RedisClient: 3.2
3333
// Redis: 3.0.3
3434

3535

3636
// Example 2. Create new Instance with config
3737
// By default, the client works with the latest stable version of Redis.
3838

3939
$Redis = new RedisClient([
40-
'server' => 'tcp://127.0.0.1:6379', // or 'unix:///tmp/redis.sock'
40+
'server' => 'tcp://127.0.0.1:6387', // or 'unix:///tmp/redis.sock'
4141
'timeout' => 2
4242
]);
4343

4444
echo 'RedisClient: '. $Redis->getSupportedVersion() . PHP_EOL;
4545
echo 'Redis: '. $Redis->info('Server')['redis_version'] . PHP_EOL;
46-
// RedisClient: 3.0
47-
// Redis: 3.0.3
46+
// RedisClient: 3.2
47+
// Redis: 3.2.0
4848

4949

5050
// Example 3. Create new Instance for Redis version 2.6.x with config

src/RedisClient/Client/AbstractRedisClient.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
abstract class AbstractRedisClient {
2222

23-
const VERSION = '1.3.0';
23+
const VERSION = '1.3.1';
2424

2525
const CONFIG_SERVER = 'server';
2626
const CONFIG_TIMEOUT = 'timeout';

src/RedisClient/ClientFactory.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
*/
1111
namespace RedisClient;
1212

13-
use RedisClient\Client\AbstractRedisClient;
1413
use RedisClient\Client\Version\RedisClient2x6;
1514
use RedisClient\Client\Version\RedisClient2x8;
1615
use RedisClient\Client\Version\RedisClient3x0;
@@ -54,7 +53,7 @@ public static function createClientByVersion($version, $config = null) {
5453
}
5554
if (empty($class)) {
5655
throw new \InvalidArgumentException(
57-
'RedisClient does not support Redis version '.$version.'. Please, use version ' .end($versions)
56+
'RedisClient does not support Redis version '.$version.'. Please, use version '. end($versions)
5857
);
5958
}
6059
return new $class($config);

src/RedisClient/Pipeline/Pipeline.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
namespace RedisClient\Pipeline;
1212

13-
use RedisClient\Pipeline\Version\Pipeline3x0 as PipelineLastStableVersion;
13+
use RedisClient\Pipeline\Version\Pipeline3x2 as PipelineLastStableVersion;
1414

1515
/**
1616
* @inheritdoc

src/RedisClient/RedisClient.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111
namespace RedisClient;
12-
use RedisClient\Client\Version\RedisClient3x0 as RedisClientLastStableVersion;
12+
use RedisClient\Client\Version\RedisClient3x2 as RedisClientLastStableVersion;
1313
use RedisClient\Pipeline\Pipeline;
1414
use RedisClient\Pipeline\PipelineInterface;
1515

0 commit comments

Comments
 (0)