connect-aliyunocs is a Aliyun OCS(http://ocs.aliyun.com) session store backed by aliyun-sdk-js
$ npm install connect-aliyunocs
client
An existing Aliyun OCS client object you normally get fromALY.memcached.createClient()
host
Aliyun OCS server internal network IPocsKey
Aliyun OCS server accountocsSecret
Aliyun OCS server passwdprefix
Key prefix defaulting to "sess:"ttl
Aliyun OCS session TTL in secondsttl
Aliyun OCS session TTL in seconds
var session = require('express-session');
var aliyunocsStore= require('connect-aliyunocs')(connect);
app.use(session({ store: new aliyunocsStore(options), secret: 'keyboard cat' }))
MIT