Browse Source
Merge pull request #294 from lawrencehj/wvp-28181-2.0
界面删除设备后同时删除Redis的对应条目,避免其它设备用同样IP登录时出现信息错误
pull/311/head
648540858
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
0 deletions
-
src/main/java/com/genersoft/iot/vmp/storager/impl/RedisCatchStorageImpl.java
|
@ -318,6 +318,15 @@ public class RedisCatchStorageImpl implements IRedisCatchStorage { |
|
|
redis.del(key.toString()); |
|
|
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 |
|
|
@Override |
|
|