Created
April 8, 2017 10:42
-
-
Save moorscode/19cc541522037ef439a785646b2628f2 to your computer and use it in GitHub Desktop.
Instances: redis-1 = General, redis-2 = User data, memcached = Transients
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$config = [ | |
'pools' => [ | |
// Default/fallback controller. | |
'General' => [ | |
'method' => 'Redis', | |
'config' => [ | |
'scheme' => 'tcp', | |
'host' => 'redis-1', | |
'port' => 6379 | |
], | |
'prerequisites' => [ | |
'class' => 'Redis', | |
], | |
'groups' => [ | |
'' | |
], | |
], | |
'Users' => [ | |
'method' => 'Redis', | |
'config' => [ | |
'scheme' => 'tcp', | |
'host' => 'redis-2', | |
'port' => 6379 | |
], | |
'prerequisites' => [ | |
'class' => 'Redis', | |
], | |
'groups' => [ | |
'users', | |
'user_meta', | |
'userlogins', | |
], | |
], | |
'transients' => [ | |
'method' => 'Memcached', | |
'config' => [ | |
'servers' => [ | |
[ | |
'memcached', | |
11211 | |
], | |
], | |
], | |
'prerequisites' => [ | |
'class' => 'Memcached', | |
], | |
'groups' => [ | |
'transient', | |
'site-transient', | |
], | |
], | |
], | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment