You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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__
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 __4.0__
8
8
9
9
## Main features
10
-
- Support Redis versions from __2.6__ to __3.2.x__.
10
+
- Support Redis versions from __2.6.x__ to __4.0.x__.
11
11
- Support __TCP/IP__ and __UNIX__ sockets.
12
12
- Support __PubSub__ and __Monitor__ functionallity.
13
13
- Support __Pipeline__ and __Transactions__.
14
+
- Support __Redis Cluster__.
14
15
- Support __RAW__ commands as strings `"SET foo bar"` or as arrays `['SET', 'foo', 'bar']`.
15
16
- Connections to Redis are established lazily by the client upon the first command.
16
17
- 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 (3.2.x).
18
+
- By default, the client works with the latest stable version of Redis (3.2).
18
19
- About **6.5-8.5% faster** than predis (based on this test: https://github.com/cheprasov/php-redis-client-vs-predis-test)
19
-
- Client was tested on the next versions of Redis: 2.6.17, 2.8.24, 3.0.7, 3.2.4 (and older).
20
+
- Client was tested on the next versions of Redis: 2.6.17, 2.8.24, 3.0.7, 3.2.6, 4.0 RC2 (and other).
21
+
- Also, Client was tested on PHP 5.5, 5.6, 7.0, 7.1, HHVM.
20
22
21
23
## Usage
22
24
23
25
### Config
24
26
25
-
```
26
-
$Redis = ClientFactory::create([
27
-
// Optional. Default = 'tcp://127.0.0.1:6379'. You can use 'unix:///tmp/redis.sock'
28
-
'server' => 'tcp://127.0.0.1:6379',
27
+
```php
28
+
$config = [
29
+
// Optional. Default = '127.0.0.1:6379'. You can use 'unix:///tmp/redis.sock'
Copy file name to clipboardExpand all lines: composer.json
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "cheprasov/php-redis-client",
3
-
"version": "1.5.1",
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",
3
+
"version": "1.6.0",
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 4.0",
0 commit comments