import os
import redis


def redis_connection(db: int=0):
    """
    :param db: Database to be used
    :return: redis connection
    """
    return redis.StrictRedis.from_url(url=os.environ.get('REDIS_URL'), db=db)

2452071a7f98d6331c5d7d6bfcb3c22f55c42d48
<mask token>

<mask token>


def redis_connection(db: int=0):
    """
    :param db: Database to be used
    :return: redis connection
    """
    return redis.StrictRedis.from_url(url=os.environ.get('REDIS_URL'), db=db)

import os
import redis


def redis_connection(db: int=0):
    """
    :param db: Database to be used
    :return: redis connection
    """
    return redis.StrictRedis.from_url(url=os.environ.get('REDIS_URL'), db=db)
