Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 621 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 621 Bytes

clout-redis-session

Install

In the directory of your clout-js application, do the following;

  1. Install this package
npm install clout-redis-session
  1. Add this module to package.json
{
    ...
    "modules": ["clout-redis-session"]
    ...
}

Configure

Create a new file redis.default.js or redis.<YOUR_ENV>.js in /conf directory with the following JavaScript.

module.exports = {
    session: {
        redis: {
            host: '<REDIS_HOST>',
            port: '<REDIS_PORT>',
            prefix: 'sess'
        }
    }
};