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__
@@ -19,6 +19,27 @@ RedisClient is a fast, fully-functional and user-friendly client for Redis, opti
19
19
20
20
## Usage
21
21
22
+
### Config
23
+
24
+
```
25
+
$Redis = ClientFactory::create([
26
+
// Optional. Default = 'tcp://127.0.0.1:6379'. You can use 'unix:///tmp/redis.sock'
27
+
'server' => 'tcp://127.0.0.1:6379',
28
+
29
+
// Optional. Default = 1
30
+
'timeout' => 2,
31
+
32
+
// Optional. Specify version to avoid some unexpected errors.
33
+
'version' => '2.8.24',
34
+
35
+
// Optional. Use it only if Redis server requires password (AUTH)
36
+
'password' => 'some-password',
37
+
38
+
// Use it, if you want to select not default db (db != 0) on connect
Copy file name to clipboardExpand all lines: composer.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "cheprasov/php-redis-client",
3
-
"version": "1.3.1",
3
+
"version": "1.4.0",
4
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",
0 commit comments