Giter Club home page Giter Club logo

Comments (6)

cyberwombat avatar cyberwombat commented on July 22, 2024

+1 for this feature - it's super annoying to parse these big dsn strings (parse.url can't event do it all the way without manual splitting) - also Note that redis-url is buggy - it doesn't work with dsn strings from nodejitsu for one. It parses the password wrong.

from connect-redis.

tj avatar tj commented on July 22, 2024

at a glance i dont get what this request is for

from connect-redis.

cyberwombat avatar cyberwombat commented on July 22, 2024

If I understand the thread then it's about being able to give a dsn string to redis instead of chopping it in bits - nodejitsu (and I think heroku) deliver long redis connect urls - something that even url.parse can't use since connect-redis wants just a password.

Example url that I would like to give to redis:

var redisUrl = 'redis://nodejitsu:nodejitsudb3051531232.redis.irstack.com:fd470c971946e8der75fbebb4@nodejitsudb305813frt232.redis.irstack.com:6379';

Something such as this would be really nice:

app.use(express.session({
  store: new RedisStore({dsn:redisUrl})
}));

from connect-redis.

tj avatar tj commented on July 22, 2024

oh, im not too interested in that, redistogo makes absolutely no sense to me, but either way it doesn't belong in this module

from connect-redis.

cyberwombat avatar cyberwombat commented on July 22, 2024

Why not? DSN are now pretty much standard and sometimes the only way to connect to some DBs - the host, port, pass is getting rather archaic. Connect-redis is actually the only piece of code that I have used in a years that can't use a dsn/uri

from connect-redis.

tj avatar tj commented on July 22, 2024

you can always fork it, no harm in that

from connect-redis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.