Setting different database on Redis #40

Closed
enrichman opened this Issue Aug 29, 2012 · 1 comment

Comments

Projects
None yet
2 participants

Hi everyone,
I've encountered some difficulties on trying to set a different db on Redis (we're using Redis on our project, so we wanted to avoid to use the same db for different things.

I thought that the database configuration in config.json would work but that's not true (that parameter is not used) so I explored the code and setted manually (after a bit of research).

So, if you want the database in config.json to work you've to add this (line 99) during the creation of the redis-store:

store:  new RedisStore({
            'host':   config.redis.host,
            'port':   config.redis.port,
            'pass':   config.redis.password,
            'db':     config.redis.database,
            'maxAge': 1209600000
        })

I don't know if this is an issue but maybe is going to save time to someone else. : )

mtougeron added a commit that referenced this issue Dec 6, 2013

Merge pull request #141 from mtougeron/issue-40
Allow you to change the redis db name in the config. Fixes Issue #40
Contributor

phairow commented Oct 10, 2014

looks like this is in :) #141 added the support for this one. Nice work!

@phairow phairow closed this Oct 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment