We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8d3c55 commit 0f64ff8Copy full SHA for 0f64ff8
README.md
@@ -31,7 +31,7 @@ php composer.phar require --prefer-dist heyanlong/yii2-redis
31
or add
32
33
```json
34
-"yiisoft/yii2-redis": "~2.0.0"
+"heyanlong/yii2-redis": "~2.0.0"
35
```
36
37
to the require section of your composer.json.
@@ -43,5 +43,22 @@ Configuration
43
To use this extension, you have to configure the Connection class in your application configuration:
44
45
```php
46
-// TODO
+return [
47
+ //....
48
+ 'components' => [
49
+ 'redis' => [
50
+ 'class' => 'heyanlong\redis\Connection',
51
+ 'master' => [
52
+ '10.155.20.169:6379',
53
+ '10.155.20.167:6391',
54
+ '10.155.20.168:6379',
55
+ '10.155.20.167:6380',
56
+// 'localhost:6379',
57
+ ],
58
+ 'database' => 0,
59
60
+
61
62
+ ]
63
+];
64
0 commit comments