Skip to content

Dev v1.3.1 #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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__
Expand All @@ -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
Expand Down Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 4 additions & 4 deletions examples/create_new_instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@
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


// Example 2. Create new Instance with config
// 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
Expand Down
2 changes: 1 addition & 1 deletion src/RedisClient/Client/AbstractRedisClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 1 addition & 2 deletions src/RedisClient/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/RedisClient/Pipeline/Pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
namespace RedisClient\Pipeline;

use RedisClient\Pipeline\Version\Pipeline3x0 as PipelineLastStableVersion;
use RedisClient\Pipeline\Version\Pipeline3x2 as PipelineLastStableVersion;

/**
* @inheritdoc
Expand Down
2 changes: 1 addition & 1 deletion src/RedisClient/RedisClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down