def METHOD_NAME(self) -> None:
    """Cache the generated identity verification code for later comparison."""
    cache: FidesopsRedis = get_cache()
    attempt_count: int = self._get_cached_verification_code_attempt_count()
    cache.set_with_autoexpire(
        key=self._get_identity_verification_attempt_count_cache_key(),
        value=attempt_count + 1,
        expire_time=CONFIG.redis.identity_verification_code_ttl_seconds,
    )