prefect_redis.client
Functions
cached
close_all_cached_connections
clear_cached_clients
get_async_redis_client
url is provided (or configured via
PREFECT_REDIS_MESSAGING_URL), Redis.from_url is used and
the discrete host/port/… arguments are ignored.
Args:
url: Full Redis URL (e.g.redis\://localhost\:6379/0).host: The host location.port: The port to connect to the host with.db: The Redis database to interact with.password: The password for the redis hostusername: Username for the redis instancehealth_check_interval: Health check interval in seconds.decode_responses: Whether to decode binary responses from Redis to unicode strings.ssl: Whether to use SSL for the connection.
- a Redis client
async_redis_from_settings
Classes
RedisMessagingSettings
Settings for connecting to Redis.
Connection can be configured either via a single url field
(e.g. redis://user:pass@host:6379/0) or with the individual
host/port/db/… fields. When url is set it takes
precedence and the discrete fields are ignored.
Environment variable: PREFECT_REDIS_MESSAGING_URL