Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Redis if available else default to LevelDB #13

Open
nelsonic opened this issue Feb 11, 2015 · 2 comments
Open

Use Redis if available else default to LevelDB #13

nelsonic opened this issue Feb 11, 2015 · 2 comments

Comments

@nelsonic
Copy link
Member

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');
}
@nelsonic
Copy link
Member Author

This is an implementation detail ... feels like it should be left to the user/implementor to decide.
What do people think? should we add this type of DB-switching code to our demo?

@joseluisq
Copy link

joseluisq commented May 16, 2016

Sure, I like the checking idea if Redis is available. 👍

Well, here some "interesting" benchmarks 😄
http://vschart.com/compare/leveldb/vs/redis-database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants