egg-sequelize Multi Clients
egg-sequelize 怎样使用多个客户端,像egg-redis那样:
config.redis = {
clients: {
foo: {
port: 6379,
host: ‘127.0.0.1’,
password: ‘auth’,
db: 0,
},
bar: {
port: 6379,
host: ‘127.0.0.1’,
password: ‘auth’,
db: 1,
},
}
}
1 回复