Created: 2011-07-08 16:12
Updated: 2019-02-14 08:39
License: mit


A Redis store for nconf


Installing npm (node package manager)

  $ curl | sh

Installing nconf-redis

  $ [sudo] npm install nconf
  $ [sudo] npm install nconf-redis


tldr;?: To break the nconf codebase into small modules that work together.


The store provided by nconf-redis will persist all of your configuration settings to a Redis server. All calls to .get(), .set(), .clear(), .reset() are asynchronous taking an additional callback parameter.

The Redis engine also has an in-memory cache with a default TTL of one hour. To change this, just pass the ttl option to .use().

  var nconf = require('nconf');
  // Requiring `nconf-redis` will extend the `nconf`
  // module.
  nconf.use('redis', { host: 'localhost', port: 6379, ttl: 60 * 60 * 1000, db: 0 });

Author: Charlie Robbins

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more