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

Method clear

graphene/utils/dataloader.py:140–147  ·  view source on GitHub ↗

Clears the value at `key` from the cache, if it exists. Returns itself for method chaining.

(self, key)

Source from the content-addressed store, hash-verified

138 return gather(*[self.load(key) for key in keys])
139
140 def clear(self, key):
141 """
142 Clears the value at `key` from the cache, if it exists. Returns itself for
143 method chaining.
144 """
145 cache_key = self.get_cache_key(key)
146 self._cache.pop(cache_key, None)
147 return self
148
149 def clear_all(self):
150 """

Callers 4

clear_allMethod · 0.80
failed_dispatchFunction · 0.80

Calls

no outgoing calls