@classmethod
def _cache(cls, app_name):
    """Return cache file."""
    from pathlib import Path
    from appdirs import user_cache_dir
    cache_dir = Path(user_cache_dir(app_name, None))
    cache_dir.mkdir(parents=True, exist_ok=True)
    return cache_dir / cls.STATE_NAME
