0.0.3 • Published 10 years ago
connect-aliyunocs v0.0.3
Connect Aliyun OCS
connect-aliyunocs is a Aliyun OCS(http://ocs.aliyun.com) session store backed by aliyun-sdk-js
Installation
$ npm install connect-aliyunocsOptions
clientAn existing Aliyun OCS client object you normally get fromALY.memcached.createClient()hostAliyun OCS server internal network IPocsKeyAliyun OCS server accountocsSecretAliyun OCS server passwdprefixKey prefix defaulting to "sess:"ttlAliyun OCS session TTL in seconds
Usage
var session = require('express-session');
var aliyunocsStore= require('connect-aliyunocs')(connect);
app.use(session({ store: new aliyunocsStore(options), secret: 'keyboard cat' }))License
MIT