MCPcopy Create free account
hub / github.com/alibaba/GraphScope / clear_node_attr_cache

Method clear_node_attr_cache

python/graphscope/nx/classes/cache.py:284–296  ·  view source on GitHub ↗

Clear the node attr cache

(self)

Source from the content-addressed store, hash-verified

282 self.warmup()
283
284 def clear_node_attr_cache(self):
285 """Clear the node attr cache"""
286 if self.futures["node_attr"] is not None:
287 self.futures["node_attr"].cancel()
288 if self.futures["node_attr"] is not None:
289 try:
290 self.futures["node_attr"].result()
291 except concurrent.futures.CancelledError:
292 pass
293 self.futures["node_attr"] = None
294 self.node_attr_cache = ()
295 self.get_node_attr.cache_clear()
296 self.node_attr_align = False
297
298 def clear_neighbor_attr_cache(self):
299 """Clear the neighbor attr cache"""

Callers 2

updateMethod · 0.80
set_node_dataMethod · 0.80

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected