Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议增加db选项,可以实现配置中选择db #7

Open
zj8487 opened this issue Jun 15, 2014 · 1 comment
Open

建议增加db选项,可以实现配置中选择db #7

zj8487 opened this issue Jun 15, 2014 · 1 comment

Comments

@zj8487
Copy link

zj8487 commented Jun 15, 2014

this.redis.once('ready', function(err) {
if (!!err) {
cb(err);
} else {
self.redis.select(self.db, cb);
}
});

配置中可以使用db
prefix: 'globalChannel',
host: '127.0.0.1',
port: 6379,
db:3,
cleanOnStartUp: true

@feitianbubu
Copy link

这个建议不错,建议官方采纳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants