One redis for multiple websites?

November 10, 2014 883 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

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.
Have another answer? Share your knowledge.