界面删除设备后同时删除Redis的对应条目,避免其它设备用同样IP登录时出现信息错误
This commit is contained in:
parent
f64016a6c7
commit
21c3904a3f
@ -318,6 +318,15 @@ public class RedisCatchStorageImpl implements IRedisCatchStorage {
|
||||
redis.del(key.toString());
|
||||
}
|
||||
}
|
||||
|
||||
List<Object> deviceCache = redis.scan(String.format("%S%s_%s", VideoManagerConstants.DEVICE_PREFIX,
|
||||
userSetup.getServerId(),
|
||||
deviceId));
|
||||
if (deviceCache.size() > 0) {
|
||||
for (Object key : deviceCache) {
|
||||
redis.del(key.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user