MCPcopy Index your code
hub / github.com/LabPy/lantz / get_cache

Method get_cache

lantz/feat.py:296–300  ·  view source on GitHub ↗
(self, instance, key=MISSING)

Source from the content-addressed store, hash-verified

294 raise AttributeError('{} is a permanent feat of {}'.format(self.name, instance.__class__.__name__))
295
296 def get_cache(self, instance, key=MISSING):
297 try:
298 return self.value[instance]
299 except KeyError:
300 return MISSING
301
302 def set_cache(self, instance, value, key=MISSING):
303 old_value = self.get_cache(instance, key)

Callers 4

getMethod · 0.95
setMethod · 0.95
set_cacheMethod · 0.95
recallMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected