connect-boobst

0.0.7 • Public • Published

connect-boobst

NPM version

connect-boobst is a Intersystems Caché session store backed by boobst.

Installation

via npm:

npm install connect-boobst

Options

To start connect-boobst, you have to pass function, returning an instance of boobst class, thus permitting the usage of existing connections or server configurations.

Using an existing connection:

  • boobst Existing connection reference (instance of Boobst)

Or with a function:

  • getConnection

Other options:

  • global Name of a global where session will be stored
  • ns Namespace

Example

var connect = require('connect')
    , ConnectBoobst = require('connect-boobst')
    , BoobstSocket = require('boobst').BoobstSocket
    , sessionStore = new ConnectBoobst({
     boobst: new BoobstSocket(
            host: 'localhost'
            , port: 6666
     )
    })
    ;
 
connect.createServer(
    connect.bodyParser(),
    connect.cookieParser(),
    connect.session({
        secret: 'secret'
        , store: sessionStore
    });
);

Readme

Keywords

none

Package Sidebar

Install

npm i connect-boobst

Weekly Downloads

4

Version

0.0.7

License

none

Last publish

Collaborators

  • agsh