Skip to content

clout-js-modules/clout-redis-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'
        }
    }
};

About

Clout module to leverage Redis for sessions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published