def METHOD_NAME(app_, mocker):
    redis_cache = {cache_key: json.dumps(response_json)}
    mock_redis_obj = MockRedis(redis_cache)
    mock_redis_method = MagicMock()
    mock_redis_method.get = Mock(side_effect=mock_redis_obj.get)
    mock_redis_method.set = Mock(side_effect=mock_redis_obj.set)
    mocker.patch("app.articles.pages.redis_client", mock_redis_method)
    with app_.test_request_context():
        mocker.patch.dict("app.current_app.config", values={"GC_ARTICLES_API": gc_articles_api})
        with requests_mock.mock() as request_mock:
            request_mock.get(request_url, json=response_json, status_code=200)
            get_page_by_slug_with_cache(endpoint, params)
            assert mock_redis_method.get.called
            assert mock_redis_method.get.call_count == 1
            assert mock_redis_method.get.called_with(cache_key)
            assert mock_redis_method.get(cache_key) is not None
            assert not request_mock.called