def METHOD_NAME(name=None):
    """
    Getting cached
    :param name: key
    :return:
    """
    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)
        if name is None:
            return save_data
        value = save_data.METHOD_NAME(name, None)
        if value is not None:
            log.info(f"Get cache data: {name} = {value}")
        return value