package com.gyee.wisdom.alarm.sharding.service;

import com.gyee.wisdom.alarm.sharding.entity.Device;
import com.gyee.wisdom.alarm.sharding.entity.DeviceStructure;
import com.gyee.wisdom.alarm.sharding.mapper.DeviceMapper;
import com.gyee.wisdom.alarm.sharding.mapper.DeviceStructureMapper;
import com.gyee.wisdom.alarm.sharding.model.TreeNode;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * 数据缓存
 */
public class CacheService {

    public static HashMap<String, TreeNode> deviceStructureMap;

    public static void clear() {
        deviceStructureMap.clear();
    }
}
