@classmethod
    def configure(cls, settings):
        kwargs = super(RedisCache, cls).configure(settings)
        try:
            from redis import StrictRedis
        except __HOLE__:  # pragma: no cover
            raise ImportError("You must 'pip install redis' before using "
                              "redis as the database")
        db_url = settings.get('db.url')
        kwargs['db'] = StrictRedis.from_url(db_url)
        return kwargs
dataset/ETHPy150Open mathcamp/pypicloud/pypicloud/cache/redis_cache.py/RedisCache.configure