One redis for multiple websites?

Posted November 10, 2014 7.1k views

Hi. I would like to know if i can install Redis in Droplet and use ir for 2 and more websites ( built with ROR) on this server? Is it possible?
p.s I`m newguy with redis and would like to learn how to use it

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

You can definitely install Redis on a DigitalOcean droplet. It’s usually suggested that you have a separate instance for each Rails app, but you can uses the same Redis for multiple apps if you wanted to. You might want to look into using something like redis-store as it will allow you to set up separate namespaces for the keys in Redis, or you could just prefix your key manually.

For details on how to install Redis, check out:

by Etel Sverdlov
This tutorial covers the Redis Installation, some simple Redis operations, and the 5 Redis data types. Redis, developed in 2009, is a flexible, open-source, key value data store that allows users to store vast amounts of data without the limits of a relational database.