def _remove_device_data_by_uuid(self, _uuid): if _uuid == None: return _row = PCSocketDeviceData(uuid=_uuid) _row.delete_redis_keys(self.redis) _row.async_delete(self.redis) return
def _remove_device_data_by_uuid(self, _uuid): if _uuid == None: return _row = PCSocketDeviceData(uuid=_uuid) _row.delete_redis_keys(self.redis) _row.async_delete() return
def _remove_device_data_by_pattern(self, _pattern): _keys = self.redis.keys(_pattern) for _i in _keys: _row = PCSocketDeviceData(uuid=self.redis.get(_i)) _row.delete_redis_keys(self.redis) _row.async_delete(self.redis) return
def _remove_device_data_by_pattern(self, _pattern): _keys = self.redis.keys(_pattern) for _i in _keys: _row = PCSocketDeviceData(uuid=self.redis.get(_i)) _row.delete_redis_keys(self.redis) _row.async_delete() return