def METHOD_NAME(key: str, ex: Optional[int] = None) -> Optional[bytes]:
    try:
        if REDIS is not None:
            blob = REDIS.get(key)
            if blob is not None:
                if ex is not None:
                    REDIS.set(key, blob, ex=ex)
                return blob
    except redislib.exceptions.BusyLoadingError:
        pass
    except redislib.exceptions.ConnectionError:
        pass
    return None