def METHOD_NAME(data: dict) -> None:
    """
    Setting cached
    :param data:
    """
    with open(DATA_PATH, "r+", encoding="utf-8") as json_file:
        if WINDOWS is False:
            fcntl.flock(json_file.fileno(), fcntl.LOCK_EX)
        save_data = json.load(json_file)
        for key, value in data.items():
            data = save_data.get(key, None)
            if data is None:
                log.info(f"Set cache data: {key} = {value}")
            else:
                log.info(f"update cache data: {key} = {value}")
            save_data[key] = value
    with open(DATA_PATH, "w+", encoding="utf-8") as json_file:
        if WINDOWS is False:
            fcntl.flock(json_file.fileno(), fcntl.LOCK_EX)
        json.dump(save_data, json_file)