import config
import redis


class AppsRedis:
    """各应用redis"""

    def get_redis(self, port: str):
        """返回对应端口应用的redis"""
        pool = redis.ConnectionPool(host=config.REDIS_HOST, port=config.
            REDIS_PORT, db=config.AppsRedisConfig[port], decode_responses=True)
        return redis.StrictRedis(connection_pool=pool)

e79532db294a33a6fb7de6e93f4bce03a33bf197
<mask token>

<mask token>


class AppsRedis:
    <mask token>

    def get_redis(self, port: str):
        """返回对应端口应用的redis"""
        pool = redis.ConnectionPool(host=config.REDIS_HOST, port=config.
            REDIS_PORT, db=config.AppsRedisConfig[port], decode_responses=True)
        return redis.StrictRedis(connection_pool=pool)

<mask token>


class AppsRedis:
    """各应用redis"""

    def get_redis(self, port: str):
        """返回对应端口应用的redis"""
        pool = redis.ConnectionPool(host=config.REDIS_HOST, port=config.
            REDIS_PORT, db=config.AppsRedisConfig[port], decode_responses=True)
        return redis.StrictRedis(connection_pool=pool)

import config
import redis


class AppsRedis:
    """各应用redis"""

    def get_redis(self, port: str):
        """返回对应端口应用的redis"""
        pool = redis.ConnectionPool(host=config.REDIS_HOST, port=config.
            REDIS_PORT, db=config.AppsRedisConfig[port], decode_responses=True)
        return redis.StrictRedis(connection_pool=pool)
