async def shutdown_redis(app: Application):
    "\n    Attempt to close the app's `redis` instance.\n\n    :param app: The application object\n    "
    logger.info('Closing Redis connection')
    try:
        app['redis'].close()
        (await app['redis'].wait_closed())
    except KeyError:
        pass
Attempt to close the app's `redis` instance.

:param app: The application object
async def shutdown_redis(app: Application):
    "\n    Attempt to close the app's `redis` instance.\n\n    :param app: The application object\n    "
    logger.info('Closing Redis connection')
    try:
        app['redis'].close()
        (await app['redis'].wait_closed())
    except KeyError:
        pass