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.8.tar.gz (14.8 kB view details)

Uploaded Source

File details

Details for the file redis_sentinel_connector-0.1.8.tar.gz.

File metadata

File hashes

Hashes for redis_sentinel_connector-0.1.8.tar.gz
Algorithm Hash digest
SHA256 e97d4c11b0a633c674ad66457ed2f428db8eb7abc85089191003fba6879ac970
MD5 51f5c394a48a2eceaf34d234dc7c7dbd
BLAKE2b-256 5ad01fd7529f32650965c20cf81a385116947539f308d4d0d45b279655443763

See more details on using hashes here.

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