0.0.3 • Published 9 years ago

connect-aliyunocs v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Connect Aliyun OCS

connect-aliyunocs is a Aliyun OCS(http://ocs.aliyun.com) session store backed by aliyun-sdk-js

Installation

  $ npm install connect-aliyunocs

Options

  • client An existing Aliyun OCS client object you normally get from ALY.memcached.createClient()
  • host Aliyun OCS server internal network IP
  • ocsKey Aliyun OCS server account
  • ocsSecret Aliyun OCS server passwd
  • prefix Key prefix defaulting to "sess:"
  • ttl Aliyun 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

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago