Skip to content

Commit 0f64ff8

Browse files
author
何延龙
committed
commit
1 parent b8d3c55 commit 0f64ff8

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ php composer.phar require --prefer-dist heyanlong/yii2-redis
3131
or add
3232

3333
```json
34-
"yiisoft/yii2-redis": "~2.0.0"
34+
"heyanlong/yii2-redis": "~2.0.0"
3535
```
3636

3737
to the require section of your composer.json.
@@ -43,5 +43,22 @@ Configuration
4343
To use this extension, you have to configure the Connection class in your application configuration:
4444

4545
```php
46-
// TODO
46+
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+
];
4764
```

0 commit comments

Comments
 (0)