Closed teabore closed 7 years ago
Store.js uses the default Redis connection. Add this change to allow custom configuration:
Store.js
constructor(opts) { super(); this.redis = new Redis(opts); }
main.js
app.use(session({ store: new Store({ host: some.host.or.ip }) }));
@teabore It's just an example to show how to use the Store, you can create your own Store class in your projects, just extends Store and then do whatever you want. :)
Store
extends Store
Store.js uses the default Redis connection. Add this change to allow custom configuration:
Store.js
main.js