Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
redis-connection-object-generator
Advanced tools
Parse a given url to generate a connection object to be used in redis client modules (supports sentinel schema urls)
Using npm:
npm install --save redis-connection-object-generator
const redisConnectionObjectGenerator = require('redis-connection-object-generator')
redisConnectionObjectGenerator('redis://:@127.0.0.1:6379/0')
// { host: '127.0.0.1', port: 6379, family: 0, password: '', db: 0 }
redisConnectionObjectGenerator(`sentinel://:password@127.0.0.1:6380,127.0.0.1:6379,127.0.0.1:6378/service_name:mymaster`)
/*
{ name: 'mymaster',
sentinels:
[ { host: '127.0.0.1', port: 6380 },
{ host: '127.0.0.1', port: 6379 },
{ host: '127.0.0.1', port: 6378 } ],
password: 'password' }
*/
FAQs
Parse a given url to generate a connection object to be used in redis client modules (supports sentinel schema urls)
We found that redis-connection-object-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.