I'm not entirely well versed in how Redis works, but I have an idea that it probably makes the most sense to have the 3 craft sites I have running on the same server, have 3 different redis databases assigned to each?

Is there a way to do so, like in general.php or db.php

As in

"site-one.com" => {
    'database' => 0,

"site-two.com" => {
    'database => 1,

You'll want to set your cacheMethod config setting to 'redis' and create a rediscache.php file in craft/config/.

That config file is multi-environment aware, just like the other files in craft/config/ and you can see the default settings for Redis in craft/app/etc/config/defaults/rediscache.php.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.