def get_redis(): redis = StrictRedis() redis.connection_pool = ConnectionPool.from_url(app.config['REDIS_URL']) return redis