Skip to main content

A package that works with Redis Sentinel.

Project description

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:

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redis_sentinel_connector-0.1.6.tar.gz (14.7 kB view hashes)

Uploaded Source

Built Distribution

redis_sentinel_connector-0.1.6-py3-none-any.whl (15.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page