Redis namespace support option
Created by: virtuman
Since open source redis doesn't support the database name (instead it accesses them by number) it would be nice to utilize namespace feature or at least the database number within redis.
Most of the applications don't explicitly specify DB number and if you have 1 shared instance of REDIS a lot of your applications will tend to use DB0 as it is the default DB number.
Current Redis implementation already supports namespaces. But since Redis doesn't really penalize for additional levels of enclosure of namespaces (except for extra characters in key names), and to allow for a little bit of flexibility of what is mentioned above - all that needs to be done is add a prefix to all redis key commands that is configurable via gitlab options.
Current naming of redis keys:
db0:
cache:
..
resque:
..
session:
..
Proposed change:
- add configurable option for redis key prefix, with empty default value (for backwards compatibility)
- add the value of #1 (closed) as prefix to all keys (or commands that handle redis communications):
db0:
**namespace:**
cache:
..
resque:
..
session:
..