-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for multiple redis servers #66
Comments
Yes. |
how to use? |
Well, define mutiple connections then use them. |
well,i mean distributed Redis usage |
Do you mean redis cluster? http://redis.io/topics/cluster-tutorial |
@crazyfd multiple connections or cluster? |
@samdark redis cluster server is work,how defind in yii2 |
If you need just multiple connections, define these as: 'components' => [
'redis1' => [
'class' => 'yii\redis\Connection',
'hostname' => 'localhost',
'port' => 6379,
'database' => 0,
],
'redis2' => [
'class' => 'yii\redis\Connection',
'hostname' => 'localhost',
'port' => 6380,
'database' => 0,
],
] |
@samdark now i have tow redis server save session,i want to do that when one server is crash the another server will continue read session or write session,how to do that? |
Via using cluster? |
@samdark yes |
@samdark How to configure redis cluster |
@smartyPHP https://github.com/Liv1020/yii2-redis Use Predis, and fully compatible with the yii2-redis |
… class, so ignore the test for replica since we applied ensure function
… class, so ignore the test for replica since we applied ensure function
* #66 distribute the read operation * #66 Add in Replica enabled test * #66 Add in some php meta description and change log * Added nickname [skip ci] * Doc adjustments [skip ci] * Update docs and simplified implementation * #66 Add in exception test * #66 invalid config exception should be handled by the Instance class, so ignore the test for replica since we applied ensure function * #66 invalid config exception should be handled by the Instance class, so ignore the test for replica since we applied ensure function
implemented by #132 |
No description provided.
The text was updated successfully, but these errors were encountered: