Skip to main content

get_redis_connection

Creates and returns a connection to a Redis server using host and port configurations retrieved from environment variables.

def get_redis_connection() - > StrictRedis

Establishes and returns a connection to a Redis server using configuration from environment variables.

Returns

TypeDescription
StrictRedisA configured Redis client instance connected to the specified host and port.