0.0.7 • Published 10 years ago

connect-boobst v0.0.7

Weekly downloads
23
License
-
Repository
github
Last release
10 years ago

#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
    });
);
0.0.7

10 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago