0.0.2 • Published 9 years ago

connect-ibmdatacache v0.0.2

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
9 years ago

connect-ibmdatacache

connect-ibmdatacache is a IBM Datacache session store for Express/Node.js apps

Setup

npm install connect-redis express-session

Pass the express-session store into connect-redis to create a RedisStore constructor.

var session = require('express-session');
var IBMDataCacheStore = require('connect-ibmdatacache')(session);

app.use(session({
    store: new IBMDataCacheStore(options),
    secret: 'keyboard cat'
}));

FAQ

How does the data store know how to connect to the IBM Datacache service?

When deployed in IBM Bluemix, an app's attached services are found in the VCAP_SERVICES environment variable. This app looks for an attached IBM Datacache service and uses that to store session keys.

License

Apache-2.0

0.0.2

9 years ago

0.0.1

9 years ago