MCPcopy Create free account
hub / github.com/graphql-python/graphene / clear_all

Method clear_all

graphene/utils/dataloader.py:149–156  ·  view source on GitHub ↗

Clears the entire cache. To be used when some event results in unknown invalidations across this particular `DataLoader`. Returns itself for method chaining.

(self)

Source from the content-addressed store, hash-verified

147 return self
148
149 def clear_all(self):
150 """
151 Clears the entire cache. To be used when some event results in unknown
152 invalidations across this particular `DataLoader`. Returns itself for
153 method chaining.
154 """
155 self._cache.clear()
156 return self
157
158 def prime(self, key, value):
159 """

Callers 1

Calls 1

clearMethod · 0.80

Tested by 1