# Path: feedhq/utils.py
# def get_redis_connection():
#     """
#     Helper used for obtain a raw redis client.
#     """
#     from redis_cache.cache import pool
#     client = redis.Redis(**settings.REDIS)
#     client.connection_pool = pool.get_connection_pool(
#         client,
#         parser_class=redis.connection.HiredisParser,
#         connection_pool_class=redis.ConnectionPool,
#         connection_pool_class_kwargs={},
#         **settings.REDIS)
#     return client


import datetime
import pytz
import structlog
from itertools import product
from dateutil import parser
from . import SentryCommand
from ....utils import get_redis_connection



logger = structlog.get_logger(__name__)


class Command(SentryCommand):
    def handle_sentry(self, **options):

# Path: feedhq/utils.py
# def get_redis_connection():
#     """
#     Helper used for obtain a raw redis client.
#     """
#     from redis_cache.cache import pool
#     client = redis.Redis(**settings.REDIS)
#     client.connection_pool = pool.get_connection_pool(
#         client,
#         parser_class=redis.connection.HiredisParser,
#         connection_pool_class=redis.ConnectionPool,
#         connection_pool_class_kwargs={},
#         **settings.REDIS)
#     return client


# Path: feedhq/feeds/management/commands/clean_rq.py
import datetime
import pytz
import structlog
from itertools import product
from dateutil import parser
from . import SentryCommand
from ....utils import get_redis_connection




logger = structlog.get_logger(__name__)


class Command(SentryCommand):
    def handle_sentry(self, **options):

        r = get_redis_connection()