🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

redis-sentinel-connector

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-sentinel-connector

A package that works with Redis Sentinel.

0.1.8
PyPI
Maintainers
1

The idea behind this package is possibility to you use some client or something like the Metabase for collect and analyse logs of your application.

Its need two environments variables:

  • TYPE = 'TEST' or 'DEV'
    • TEST: You will use fakeredis and not need use Redis instance. (Don't need environment REDIS_URL)
    • DEV: Use this if You has a local Redis like Docker Redis. (Don't need environment REDIS_URL)
  • REDIS_URL = 'complete_redis_sentinel_url'
    • Sample: sentinel://:testefoobar@host1.sentinel.domain.com:26379,host2.sentinel.domain.com:26379,host3-155915407905.sentinel.domain.com:26379/service_name:redisservice

Sample:

from redis_sentinel_connector import RedisConnector
redis_connector = RedisConnector().connect()

Or pass a variable with the complete url to the connect function

Sample:

from redis_sentinel_connector import RedisConnector
SENTINEL_URL = "sentinel://:testefoobar@host1.sentinel.domain.com:26379,host2.sentinel.domain.com:26379,host3-155915407905.sentinel.domain.com:26379/service_name:redisservice"
redis_connector = RedisConnector().connect(SENTINEL_URL)

FAQs

Did you know?

Socket

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.

Install

Related posts