dwyl/learn-json-web-tokens

Use Redis if available else default to LevelDB

Open

#13 geöffnet am 11. Feb. 2015

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (4.175 Stars) (267 Forks)batch import
enhancementhelp wanted

Beschreibung

As the title suggests, we check for the presence of Redis and use it if available:

// pseudocode
if(redisAvailable) {
  var db = require('redis');
} else {
  var db = require('level');
}

Contributor Guide