Skip to content

Commit 8db2992

Browse files
committed
Merge pull request #37 from cheprasov/dev-1.2.2
v1.2.2
2 parents 55d67af + d414c4f commit 8db2992

File tree

91 files changed

+741
-177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+741
-177
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
## CHANGELOG
22

3+
### v1.2.2 (2016-03-30)
4+
- Fixed annotations and phpDocs.
5+
- Fixed some tests.
6+
7+
### v1.2.1 (2016-03-04)
8+
- Fixed some cluster commands (Redis >= 3.0): __CLUSTER COUNT-FAILURE-REPORTS__ and __CLUSTER SAVECONFIG__.
9+
310
### v1.2.0 (2016-01-30)
411
- Updated command __MIGRATE__ (Redis >= 3.2): many fixes to the variable number of arguments (new) mode using the KEYS option.
512

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
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.2.1 for PHP >= 5.5
4+
# RedisClient v1.2.2 for PHP >= 5.5
55

66
## About
7-
RedisClient is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports latest versions of Redis starting from __2.6__
7+
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.0-RC3__
88

99
## Main features
1010
- Support Redis versions from __2.6__ to __3.2.0-RC3__.
11-
- Support TCP/IP and UNIX sockets.
11+
- Support __TCP/IP__ and __UNIX__ sockets.
1212
- Support __PubSub__ and __Monitor__ functionallity.
1313
- Support __Pipeline__ and __Transactions__.
14-
- Support RAW commands as strings `"SET foo bar"` or as arrays `['SET', 'foo', 'bar']`.
14+
- 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.
1717
- By default, the client works with the latest stable version of Redis.

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cheprasov/php-redis-client",
3-
"version": "1.2.1",
4-
"description": "Php client for Redis",
3+
"version": "1.2.2",
4+
"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-RC3",
55
"homepage": "http://github.com/cheprasov/php-redis-client",
66
"minimum-stability": "stable",
77
"license": "MIT",

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.2.1';
23+
const VERSION = '1.2.2';
2424

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

src/RedisClient/Command/Traits/AbstractCommandsTrait.php

-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
*/
1111
namespace RedisClient\Command\Traits;
1212

13-
/**
14-
* @method mixed eval($script, $keys = null, $args = null)
15-
* @method string echo($message)
16-
*/
1713
trait AbstractCommandsTrait {
1814

1915
/**

src/RedisClient/Command/Traits/Version2x6/ConnectionCommandsTrait.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
namespace RedisClient\Command\Traits\Version2x6;
1212

1313
/**
14-
* Connection
14+
* Connection Commands
1515
* @link http://redis.io/commands#connection
16+
*
17+
* @method string echo($message)
1618
*/
1719
trait ConnectionCommandsTrait {
1820

src/RedisClient/Command/Traits/Version2x6/HashesCommandsTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use RedisClient\Command\Response\ResponseParser;
1515

1616
/**
17-
* trait HashesCommandsTrait
17+
* Hashes Commands
1818
* @link http://redis.io/commands#hash
1919
*/
2020
trait HashesCommandsTrait {

src/RedisClient/Command/Traits/Version2x6/KeysCommandsTrait.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
use RedisClient\Command\Parameter\Parameter;
1414

1515
/**
16-
* trait KeysCommandsTrait
16+
* Keys Commands
17+
* @link http://redis.io/commands#generic
1718
*/
1819
trait KeysCommandsTrait {
1920

src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
use RedisClient\Command\Response\ResponseParser;
1414

1515
/**
16-
* trait ListsCommandsTrait
16+
* Lists Commands
17+
* @link http://redis.io/commands#list
1718
*/
1819
trait ListsCommandsTrait {
1920

src/RedisClient/Command/Traits/Version2x6/PubSubCommandsTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace RedisClient\Command\Traits\Version2x6;
1212

1313
/**
14-
* PubSub
14+
* PubSub Commands
1515
* @link http://redis.io/commands#pubsub
1616
*/
1717
trait PubSubCommandsTrait {

src/RedisClient/Command/Traits/Version2x6/ScriptingCommandsTrait.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
namespace RedisClient\Command\Traits\Version2x6;
1212

1313
/**
14-
* ScriptingCommandsTrait
14+
* Scripting Commands
1515
* @link http://redis.io/commands#scripting
16+
*
17+
* @method mixed eval($script, $keys = null, $args = null)
1618
*/
1719
trait ScriptingCommandsTrait {
1820

src/RedisClient/Command/Traits/Version2x6/ServerCommandsTrait.php

+28-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@
1313
use RedisClient\Command\Parameter\Parameter;
1414
use RedisClient\Command\Response\ResponseParser;
1515

16+
/**
17+
* Server Commands
18+
* @link http://redis.io/commands#server
19+
*/
1620
trait ServerCommandsTrait {
1721

1822
/**
1923
* BGREWRITEAOF
2024
* Available since 1.0.0.
25+
* @link http://redis.io/commands/bgrewriteaof
2126
*
2227
* @return bool|string Always true
2328
*/
@@ -28,6 +33,7 @@ public function bgrewriteaof() {
2833
/**
2934
* BGSAVE
3035
* Available since 1.0.0.
36+
* @link http://redis.io/commands/bgsave
3137
*
3238
* @return string
3339
*/
@@ -39,6 +45,7 @@ public function bgsave() {
3945
* CLIENT GETNAME
4046
* Available since 2.6.9.
4147
* Time complexity: O(1)
48+
* @link http://redis.io/commands/client-getname
4249
*
4350
* @return string|null The connection name, or a null bulk reply if no name is set.
4451
*/
@@ -51,6 +58,7 @@ public function clientGetname() {
5158
* CLIENT KILL [ip:port] [ID client-id] [TYPE normal|slave|pubsub] [ADDR ip:port] [SKIPME yes/no]
5259
* Available since 2.4.0.
5360
* Time complexity: O(N) where N is the number of client connections
61+
* @link http://redis.io/commands/client-kill
5462
*
5563
* @param string|array|null $addr
5664
* @param int|null $clientId
@@ -91,6 +99,7 @@ public function clientKill($addr = null, $clientId = null, $type = null, $addr2
9199
* CLIENT LIST
92100
* Available since 2.4.0.
93101
* Time complexity: O(N) where N is the number of client connections
102+
* @link http://redis.io/commands/client-list
94103
*
95104
* @return string
96105
*/
@@ -102,6 +111,7 @@ public function clientList() {
102111
* CLIENT SETNAME connection-name
103112
* Available since 2.6.9.
104113
* Time complexity: O(1)
114+
* @link http://redis.io/commands/client-setname
105115
*
106116
* @param string $connectionName
107117
* @param bool True if the connection name was successfully set.
@@ -113,6 +123,7 @@ public function clientSetname($connectionName) {
113123
/**
114124
* CONFIG GET parameter
115125
* Available since 2.0.0.
126+
* @link http://redis.io/commands/config-get
116127
*
117128
* @param string|string[]
118129
* @return array
@@ -125,6 +136,7 @@ public function configGet($parameter) {
125136
* CONFIG RESETSTAT
126137
* Available since 2.0.0.
127138
* Time complexity: O(1)
139+
* @link http://redis.io/commands/config-resetstat
128140
*
129141
* @return bool always True
130142
*/
@@ -135,6 +147,7 @@ public function configResetstat() {
135147
/**
136148
* CONFIG SET parameter value
137149
* Available since 2.0.0.
150+
* @link http://redis.io/commands/config-set
138151
*
139152
* @param string $parameter
140153
* @param string $value
@@ -147,6 +160,7 @@ public function configSet($parameter, $value) {
147160
/**
148161
* DBSIZE
149162
* Available since 1.0.0.
163+
* @link http://redis.io/commands/dbsize
150164
*
151165
* @return int The number of keys in the currently-selected database.
152166
*/
@@ -157,6 +171,7 @@ public function dbsize() {
157171
/**
158172
* DEBUG OBJECT key
159173
* Available since 1.0.0.
174+
* @link http://redis.io/commands/debug-object
160175
*
161176
* @param string $key
162177
* @return string
@@ -168,6 +183,7 @@ public function debugObject($key) {
168183
/**
169184
* DEBUG SEGFAULT
170185
* Available since 1.0.0.
186+
* @link http://redis.io/commands/debug-segfault
171187
*
172188
* @return string
173189
*/
@@ -178,6 +194,7 @@ public function debugSegfault() {
178194
/**
179195
* FLUSHALL
180196
* Available since 1.0.0.
197+
* @link http://redis.io/commands/flushall
181198
*
182199
* @return bool
183200
*/
@@ -188,6 +205,7 @@ public function flushall() {
188205
/**
189206
* FLUSHDB
190207
* Available since 1.0.0.
208+
* @link http://redis.io/commands/flushdb
191209
*
192210
* @return bool
193211
*/
@@ -198,6 +216,7 @@ public function flushdb() {
198216
/**
199217
* INFO [section]
200218
* Available since 1.0.0.
219+
* @link http://redis.io/commands/info
201220
*
202221
* @param string $section
203222
* @return string
@@ -209,6 +228,7 @@ public function info($section = null) {
209228
/**
210229
* LASTSAVE
211230
* Available since 1.0.0.
231+
* @link http://redis.io/commands/lastsave
212232
*
213233
* @return int an UNIX time stamp.
214234
*/
@@ -219,6 +239,7 @@ public function lastsave() {
219239
/**
220240
* MONITOR
221241
* Available since 1.0.0.
242+
* @link http://redis.io/commands/monitor
222243
*
223244
* @param \Closure $callback
224245
* @return mixed
@@ -230,6 +251,7 @@ public function monitor(\Closure $callback) {
230251
/**
231252
* SAVE
232253
* Available since 1.0.0.
254+
* @link http://redis.io/commands/save
233255
*
234256
* @return bool The commands returns True on success
235257
*/
@@ -238,8 +260,9 @@ public function save() {
238260
}
239261

240262
/**
241-
* SHUTDOWN [NOSAVE] [SAVE]
263+
* SHUTDOWN [NOSAVE|SAVE]
242264
* Available since 1.0.0.
265+
* @link http://redis.io/commands/shutdown
243266
*
244267
* @param string|null $save NOSAVE or SAVE
245268
*/
@@ -250,6 +273,7 @@ public function shutdown($save) {
250273
/**
251274
* SLAVEOF host port
252275
* Available since 1.0.0.
276+
* @link http://redis.io/commands/slaveof
253277
*
254278
* @param string $host
255279
* @param string $port
@@ -262,6 +286,7 @@ public function slaveof($host, $port) {
262286
/**
263287
* SLOWLOG subcommand [argument]
264288
* Available since 2.2.12.
289+
* @link http://redis.io/commands/slowlog
265290
*
266291
* @param string $subcommand GET|LEN|RESET
267292
* @param string|null $argument
@@ -278,7 +303,7 @@ public function slowlog($subcommand, $argument = null) {
278303
/**
279304
* SYNC
280305
* Available since 1.0.0.
281-
*
306+
* @link http://redis.io/commands/sync
282307
*/
283308
public function sync() {
284309
return $this->returnCommand(['SYNC']);
@@ -288,6 +313,7 @@ public function sync() {
288313
* TIME
289314
* Available since 2.6.0.
290315
* Time complexity: O(1)
316+
* @link http://redis.io/commands/time
291317
*
292318
* @return string
293319
*/

src/RedisClient/Command/Traits/Version2x6/SetsCommandsTrait.php

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
*/
1111
namespace RedisClient\Command\Traits\Version2x6;
1212

13+
/**
14+
* Sets Commands
15+
* @link http://redis.io/commands#set
16+
*/
1317
trait SetsCommandsTrait {
1418

1519
/**

src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
use RedisClient\Command\Response\ResponseParser;
1515

1616
/**
17-
* trait SortedSetsCommandsTrait
17+
* SortedSets Commands
18+
* @link http://redis.io/commands#set
1819
* @link http://redis.io/topics/data-types#sorted-sets
1920
*/
2021
trait SortedSetsCommandsTrait {

src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
use InvalidArgumentException;
1414
use RedisClient\Command\Parameter\Parameter;
1515

16+
/**
17+
* Strings Commands
18+
* @link http://redis.io/commands#string
19+
*/
1620
trait StringsCommandsTrait {
1721

1822
/**

src/RedisClient/Command/Traits/Version2x6/TransactionsCommandsTrait.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
namespace RedisClient\Command\Traits\Version2x6;
1212

1313
/**
14-
* trait TransactionsCommandsTrait
14+
* Transactions Commands
15+
* @link http://redis.io/commands#transactions
1516
* @link http://redis.io/topics/transactions
1617
*/
1718
trait TransactionsCommandsTrait {
@@ -65,6 +66,7 @@ public function unwatch() {
6566
* WATCH key [key ...]
6667
* Available since 2.2.0.
6768
* Time complexity: O(1) for every key.
69+
* @link http://redis.io/commands/watch
6870
*
6971
* @param string|string[] $keys
7072
* @return bool Always True

src/RedisClient/Command/Traits/Version2x8/HashesCommandsTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use RedisClient\Command\Traits\Version2x6\HashesCommandsTrait as HashesCommandsTraitVersion2x6;
1414

1515
/**
16-
* trait HashesCommandsTrait
16+
* Hashes Commands
1717
* @link http://redis.io/commands#hash
1818
*/
1919
trait HashesCommandsTrait {

src/RedisClient/Command/Traits/Version2x8/HyperLogLogCommandsTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace RedisClient\Command\Traits\Version2x8;
1212

1313
/**
14-
* HyperLogLog
14+
* HyperLogLog Commands
1515
* @link http://redis.io/commands#hyperloglog
1616
*/
1717
trait HyperLogLogCommandsTrait {

0 commit comments

Comments
 (0)