1.1.2 • Published 7 years ago
the-sticky v1.1.2
the-sticky
Sticky sessions for the-server
Installation
$ npm install the-sticky --save
Usage
'use strict'
const theServer = require('the-server')
const {run} = require('the-sticky')
const {Ctrl} = theServer
run(() => {
const server = theServer({
redis: {host: '127.0.0.1', port: '6379', db: 1}
})
class FruitShopCtrl extends Ctrl {/* ... */}
server.register(FruitShopCtrl, 'fruitShop')
server.listen(3000)
})
API Guide
License
This software is released under the MIT License.