| | |
| | | CacheUtils.unitConversionMapper = unitConversionMapper; |
| | | } |
| | | |
| | | public static void clearDictionariesCache() { |
| | | redisTemplate.delete(RedisConstants.DICT_DATA_KEY); |
| | | redisTemplate.delete(RedisConstants.DICT_TYPE_KEY); |
| | | } |
| | | |
| | | public static void flushDeviceAlarmInfo() { |
| | | public static void refreshDeviceAlarmInfo() { |
| | | //删除缓存 |
| | | redisTemplate.delete(RedisConstants.DEVICE_INFO); |
| | | //重新添加缓存 |
| | |
| | | //存入redis |
| | | redisTemplate.opsForHash().putAll(RedisConstants.DEVICE_INFO,result); |
| | | } |
| | | |
| | | public static void refreshSensor(){ |
| | | sensorService.refreshCache(); |
| | | } |
| | | |
| | | public static void refreshDicTypeAndData(){ |
| | | |
| | | } |
| | | } |